FileExtension extension
- on
Methods
-
copy_(
String destination) → Future< void> -
Available on File, provided by the FileExtension extension
Copies the File to the specifieddestination. -
create_(
) → Future< void> -
Available on File, provided by the FileExtension extension
Creates the File. -
lastModified_(
) → FutureOr< DateTime?> -
Available on File, provided by the FileExtension extension
Returns last modified timestamp of the File. Returnsnullif the File does not exist. -
lastModifiedSync_(
) → DateTime? -
Available on File, provided by the FileExtension extension
Returns last modified timestamp of the File. Returnsnullif the File does not exist. -
length_(
) → FutureOr< int> -
Available on File, provided by the FileExtension extension
Returns size the File in bytes. Returns0if the File does not exist. -
lengthSync_(
) → int -
Available on File, provided by the FileExtension extension
Returns size the File in bytes. Returns0if the File does not exist. -
read_(
) → FutureOr< String?> -
Available on File, provided by the FileExtension extension
Reads the contents of the File as String. Returnsnullif the File does not exist. -
readAsBytes_(
) → FutureOr< Uint8List?> -
Available on File, provided by the FileExtension extension
Reads the contents of the File as Uint8List. Returnsnullif the File does not exist. -
rename_(
String destination) → Future< void> -
Available on File, provided by the FileExtension extension
Renames the File to the specifieddestination. -
size_(
) → FutureOr< int> -
Available on File, provided by the FileExtension extension
Returns size the File in bytes. Returns0if the File does not exist. -
sizeSync_(
) → int -
Available on File, provided by the FileExtension extension
Returns size the File in bytes. Returns0if the File does not exist. -
write_(
dynamic content, {bool history = false}) → Future< void> -
Available on File, provided by the FileExtension extension
Safely writescontentto the File. Passedcontentmay be String or Uint8List.