ConfigLoadResult class

Result of loading a configuration file.

Constructors

ConfigLoadResult.error(String? error)
Creates a failed result.
ConfigLoadResult.notFound()
Creates a result when config file doesn't exist.
ConfigLoadResult.success(AssetOptConfig? config)
Creates a successful result.

Properties

config AssetOptConfig?
The loaded configuration, if successful.
final
error String?
Error message if loading failed.
final
hasConfig bool
True if config was loaded.
no setter
hasError bool
True if an error occurred.
no setter
hashCode int
The hash code for this object.
no setterinherited
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

Operators

operator ==(Object other) bool
The equality operator.
inherited