SettingsLoader class

Reads settings JSON off the asset bundle; a missing or malformed file is logged and rethrown, never swallowed.

Constructors

SettingsLoader({Future<String> loadString(String path)?})

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

load<T>(String path, T parse(Object? json)) → Future<T>
path's JSON, decoded and handed to parse.
loadShared({required String userSettingsPath, required String appSettingsPath, required String blogSettingsPath}) → Future<SharedSettings>
The app, user and blog settings, read in parallel; the first failure is rethrown as it was thrown.
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