ReadFileAsBytes mixin
- Superclass Constraints
Properties
- basename → String
-
The part of path after the last separator.
no setterinherited
- basenameWithoutExtension → String
-
The part of path after the last separator, and without trailing
file extension.
no setterinherited
- bytes ↔ Uint8List?
-
getter/setter pair
- exceptionWhenFileNotExists → bool
-
If
true
returnsnull
when a requested file not found.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- npath → String
-
Normalized path.
See PathStringExt.npath.
no setterinherited
- path ↔ String
-
Path with a system separator.
See spathSeparator.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copy(
dynamic from, dynamic to) → WFile -
Returns a link to copied file.
inherited
-
counstructPath(
{bool? hasFile}) → void -
inherited
-
delete(
[dynamic pathToFile]) → void -
inherited
-
existsAny(
[dynamic path]) → bool -
Exists a file or directory.
path
can be String or Iterable<String>.inherited -
existsDir(
[dynamic pathToDir]) → bool -
inherited
-
existsFile(
[dynamic pathToFile]) → bool -
inherited
-
join(
dynamic anyPath, [bool withPrefix = true]) → String -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readAsBytes(
[dynamic pathToFile]) → Uint8List? -
inherited
-
readAsImage(
dynamic pathToFile, {int? numChannels, num? alpha}) → Image? -
Read image and can get a guarantee an alpha channel.
If the
numChannels
is 4 and the current image does not have an alpha channel, then the givenalpha
value will be used to set the new alpha channel. Ifalpha
is not provided, then themaxChannelValue
will be used to set the alpha.inherited -
readAsJsonList(
[dynamic pathToFile]) → JsonList? -
See readAsJsonListT.
inherited
-
readAsJsonListListT<
T> ([dynamic pathToFile]) → List< List< ?T> > -
See readAsJsonListT.
inherited
-
readAsJsonListString(
[dynamic pathToFile]) → List< String> ? -
See readAsJsonListT.
inherited
-
readAsJsonListT<
T> ([dynamic pathToFile]) → List< T> ? -
See readAsJsonListListT.
inherited
-
readAsJsonMap(
[dynamic pathToFile]) → JsonMap? -
See readAsJsonMapT.
inherited
-
readAsJsonMapString(
[dynamic pathToFile]) → Map< String, String> ? -
See readAsJsonMapT.
inherited
-
readAsJsonMapT<
T> ([dynamic pathToFile]) → Map< String, T> ? -
inherited
-
readAsText(
[dynamic pathToFile, Encoding encoding = utf8]) → String? -
inherited
-
readAsTextLines(
[dynamic pathToFile, Encoding encoding = utf8]) → List< String> ? -
inherited
-
readAsXml(
[dynamic pathToFile]) → XmlDocument? -
inherited
-
readOrDefaults<
T> (dynamic pathToFile, T reader(File), {T? defaults}) → T? -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
writeAsBytes(
Uint8List bytes, [dynamic pathToFile]) → void -
inherited
-
writeAsImage(
Image image, [dynamic pathToFile]) → void -
inherited
-
writeAsText(
String text, [dynamic pathToFile]) → void -
inherited
-
writeAsXml(
XmlDocument xml, [dynamic pathToFile, bool pretty = false]) → void -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited