StorageConfig class
Immutable typed configuration for RoutedStorageProvider.
With the default constructor, the provider creates one local disk rooted
at storage/app and selects it as the default. Supplying disks replaces
that generated disk map, so include the defaultDisk entry explicitly when
providing custom disks.
- Implemented types
Constructors
-
StorageConfig({String defaultDisk = 'local', String root = 'storage/app', Map<
String, LocalStorageDiskConfig> ? disks}) - Creates typed storage configuration with local-disk defaults.
Properties
- defaultDisk → String
-
Name of the disk used when no disk is specified.
final
-
disks
→ Map<
String, LocalStorageDiskConfig> -
Named disk definitions copied from the constructor input.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- root → String
-
Root used by the generated
localdisk.final - 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
-
validate(
ConfigValidationContext context) → void -
Records configuration errors in
context.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited