YamlAssetLoader class
Loads a YAML file.
Constructors
- YamlAssetLoader({required String directory, String? package})
-
const
Properties
- directory → String
-
The directory for YAML files, from the package or app root.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- package → String?
-
The package name, null for non-package assets.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getFilePath(
Locale locale, {required String basePath}) → String - Returns the file path for the locale.
-
load(
String basePath, Locale locale) → Future< Map< String, dynamic> > -
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