Skip to content

Commit ebe3b5c

Browse files
committed
update docs
1 parent 786fbd1 commit ebe3b5c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

templates/dart/lib/src/input_file.dart.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ class InputFile {
66
final String? filename;
77
final String? contentType;
88

9-
/// Provide a file using path
9+
/// Provide a file, use `path` for IO platforms
10+
/// and provide `bytes` for web platform
1011
InputFile({this.path, this.filename, this.contentType, this.bytes}) {
1112
if (kIsWeb && bytes == null) {
1213
throw {{ spec.title | caseUcfirs }}Exception('On web `bytes` is required');

templates/flutter/lib/src/input_file.dart.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ class InputFile {
66
final String? filename;
77
final String? contentType;
88

9-
/// Provide a file using path
9+
/// Provide a file, use `path` for IO platforms
10+
/// and provide `bytes` for web platform
1011
InputFile({this.path, this.filename, this.contentType, this.bytes}) {
1112
if (kIsWeb && bytes == null) {
1213
throw {{ spec.title | caseUcfirs }}Exception('On web `bytes` is required');

0 commit comments

Comments
 (0)