Filesystem access (Storage::disk('public')->put(...)).
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
-
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 Properties
- manager → StorageManager
-
The storage manager of the current container.
no setter
Static Methods
-
delete(
Object paths) → Future< bool> - Deletes a path or a list of paths.
-
disk(
[String? name]) → Disk -
The disk
name(local,public,s3...), or the default one. -
download(
String path, {String? name, Map< String, String> ? headers, Request? request}) → Future<Response> -
The file at
pathas an attachment, from the default disk. -
exists(
String path) → Future< bool> -
Whether
pathexists. -
fake(
[String? name]) → MemoryDisk -
Swaps
name(default disk whennull) for an in-memory disk. -
files(
[String directory = '']) → Future< List< String> > -
The files directly in
directory. -
get(
String path) → Future< String> -
The text at
path. -
getBytes(
String path) → Future< Uint8List> -
The bytes at
path. -
missing(
String path) → Future< bool> -
Whether
pathdoes not exist. -
put(
String path, Object contents) → Future< void> -
Writes
contents(a string or bytes) topathon the default disk. -
response(
String path, {String? name, Map< String, String> ? headers, Request? request}) → Future<Response> -
The file at
path, shown by the browser, from the default disk. -
size(
String path) → Future< int> -
The size of
pathin bytes. -
url(
String path) → String -
The public URL of
path.