FileUtil class
File I/O utilities.
Constructors
- FileUtil()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
loadFileAsBytes(
String fileAssetLocation) → Future< Uint8List> - Loads a file from project assets as Uint8List bytes.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
labelListFromString(
String fileString) → List< String> - Splits the string at matches of newline character and returns a list of substrings.
-
loadFileOnDevice(
String fileAssetPath) → Future< File> -
Loads a file from project assets at
fileAssetPath
on the device -
loadLabels(
String fileAssetLocation) → Future< List< String> > - Loads a label file into a list of strings
-
loadLabelsFromFile(
File file) → List< String> -
Loads a label
file
into a list of strings