AssetOptConfig class
Parsed configuration from asset_opt.yaml.
Constructors
-
AssetOptConfig({required OptimizationSettings optimization, required LimitSettings limits, Map<
String, PresetSettings> presets = const {}, List<String> exclude = const []}) - Creates a configuration.
- AssetOptConfig.fromYaml(YamlMap yaml)
-
factory
Properties
-
exclude
→ List<
String> -
Glob patterns for files to exclude.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- limits → LimitSettings
-
Size and dimension limits.
final
- optimization → OptimizationSettings
-
Image optimization settings.
final
-
presets
→ Map<
String, PresetSettings> -
Named optimization presets.
final
- 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
-
toOptimizationConfig(
{String? presetName}) → OptimizationConfig - Converts to an OptimizationConfig for use in optimization.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited