File tree 4 files changed +17
-1
lines changed
4 files changed +17
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.3.3+6
2
+
3
+ * Improves documentation about ignored parameters in IO implementation.
4
+
1
5
## 0.3.3+5
2
6
3
7
* Adds pub topics to package metadata.
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ abstract class XFileBase {
38
38
39
39
/// The name of the file as it was selected by the user in their device.
40
40
///
41
+ /// For non-web implementation, this represents the last part of the filesystem path.
42
+ ///
41
43
/// Use only for cosmetic reasons, do not try to use this as a path.
42
44
String get name {
43
45
throw UnimplementedError ('.name has not been implemented.' );
Original file line number Diff line number Diff line change @@ -17,6 +17,13 @@ class XFile extends XFileBase {
17
17
/// [bytes] is ignored; the parameter exists only to match the web version of
18
18
/// the constructor. To construct a dart:io XFile from bytes, use
19
19
/// [XFile.fromData] .
20
+ ///
21
+ /// [name] is ignored; the parameter exists only to match the web version of
22
+ /// the constructor.
23
+ ///
24
+ /// [length] is ignored; the parameter exists only to match the web version of
25
+ /// the constructor.
26
+ ///
20
27
// ignore: use_super_parameters
21
28
XFile (
22
29
String path, {
@@ -32,6 +39,9 @@ class XFile extends XFileBase {
32
39
super (path);
33
40
34
41
/// Construct an CrossFile from its data
42
+ ///
43
+ /// [name] is ignored; the parameter exists only to match the web version of
44
+ /// the constructor.
35
45
XFile .fromData (
36
46
Uint8List bytes, {
37
47
String ? mimeType,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: cross_file
2
2
description : An abstraction to allow working with files across multiple platforms.
3
3
repository : https://github.com/flutter/packages/tree/main/packages/cross_file
4
4
issue_tracker : https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+cross_file%22
5
- version : 0.3.3+5
5
+ version : 0.3.3+6
6
6
7
7
environment :
8
8
sdk : " >=2.19.0 <4.0.0"
You can’t perform that action at this time.
0 commit comments