DVFileStorageConfig class

The parsed dartvel.fileStorage section.

Constructors

DVFileStorageConfig({List<DVDeviceFileAccess> access = const <DVDeviceFileAccess>[], String? reason, bool shareAppFiles = false, List<String> problems = const <String>[]})
const

Properties

access → List<DVDeviceFileAccess>
What is needed beyond the application's own directory, which needs no permission anywhere and is therefore not listed.
final
hashCode → int
The hash code for this object.
no setteroverride
isEmpty → bool
no setter
permissionNames → List<String>
The Dartvel permission names a runtime request uses for this access.
no setter
problems → List<String>
What was wrong with the declaration, one sentence each.
final
reason → String?
Why, in the words iOS and macOS show the person when they ask.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shareAppFiles → bool
Whether the application's own documents show in the Files app (iOS) and can be opened in place by other apps.
final

Methods

allows(DVDeviceFileAccess kind) → bool
Whether kind was asked for.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDeclaration() → Map<String, Object?>
The pubspec map this configuration is. Only what differs from the default is written, so a default configuration is an empty map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

parse(Object? raw) → DVFileStorageConfig
Reads dartvel.fileStorage. A missing section is the default: the application's own directory and nothing else.