Settings class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
-
Settings({required double? interfaceScale, required bool denseExplorer, @Default.new(<FeatureFlags>{}) Set<
FeatureFlags> optInFeatures, @Default.new(<String, PanelPosition>{}) Map<String, PanelPosition> positions}) -
constfactory
-
Settings.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $SettingsCopyWith<
Settings> -
Create a copy of Settings
with the given fields replaced by the non-null parameter values.
no setterinherited
- denseExplorer → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- interfaceScale → double?
-
no setterinherited
-
optInFeatures
→ Set<
FeatureFlags> -
no setterinherited
-
positions
→ Map<
String, PanelPosition> -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_Settings value)) → TResult -
Available on Settings, provided by the SettingsPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_Settings value)?) → TResult? -
Available on Settings, provided by the SettingsPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_Settings value)?, {required TResult orElse()}) → TResult -
Available on Settings, provided by the SettingsPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(double? interfaceScale, bool denseExplorer, Set< FeatureFlags> optInFeatures, Map<String, PanelPosition> positions)?, {required TResult orElse()}) → TResult -
Available on Settings, provided by the SettingsPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this Settings to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(double? interfaceScale, bool denseExplorer, Set< FeatureFlags> optInFeatures, Map<String, PanelPosition> positions)) → TResult -
Available on Settings, provided by the SettingsPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(double? interfaceScale, bool denseExplorer, Set< FeatureFlags> optInFeatures, Map<String, PanelPosition> positions)?) → TResult? -
Available on Settings, provided by the SettingsPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited