JsonFileSource class

A native UTF-8 JSON-object file loaded on demand.

Implemented types

Constructors

JsonFileSource(String path, {bool optional = false})
Resolves path to an absolute path at construction.

Properties

hashCode → int
The hash code for this object.
no setterinherited
optional → bool
Whether an absent file produces an empty source.
final
path → String
Absolute file path captured at construction.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

load() → Future<Map<String, Object?>>
Loads this source; later registered sources override earlier ones.
override
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