SlangEditorState class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
-
SlangEditorState({@Default.new({}) Map<
String, dynamic> slangJson, @Default.new({}) Map<String, dynamic> slangScopedJson, @Default.new({}) Map<String, dynamic> baseSlangJson, @Default.new({}) Map<String, dynamic> ovSlangJson, @Default.new({}) Set<String> scopedKeys, @Default.new([]) List<String> diffKeys, String? selectedKey, String? scrollToKey, @Default.new(true) bool disablePreviewFocus, @Default.new([]) List<String> searchResults, @Default.new(0.0) double progress}) -
factory
-
SlangEditorState.fromJson(Map<
String, Object?> json) -
factory
Properties
-
baseSlangJson
→ Map<
String, dynamic> -
the base language unmodified locale file
no setterinherited
-
copyWith
→ $SlangEditorStateCopyWith<
SlangEditorState> -
Create a copy of SlangEditorState
with the given fields replaced by the non-null parameter values.
no setterinherited
-
diffKeys
→ List<
String> -
no setterinherited
- disablePreviewFocus → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ovSlangJson
→ Map<
String, dynamic> -
current language unmodified locale file
no setterinherited
- progress → double
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scopedKeys
→ Set<
String> -
no setterinherited
- scrollToKey → String?
-
no setterinherited
-
searchResults
→ List<
String> -
no setterinherited
- selectedKey → String?
-
no setterinherited
-
slangJson
→ Map<
String, dynamic> -
current live locale file
no setterinherited
-
slangScopedJson
→ Map<
String, dynamic> -
current live locale file (scoped)
no setterinherited
Methods
-
baseValue(
String key) → Object -
Available on SlangEditorState, provided by the SlangEditorStateExt extension
-
baseVersion(
String key) → String -
Available on SlangEditorState, provided by the SlangEditorStateExt extension
-
computeDiff(
SlangBaseStateData baseData) → SlangEditorState -
Available on SlangEditorState, provided by the SlangEditorStateExt extension
-
currentSearchIndex(
) → int -
Available on SlangEditorState, provided by the SlangEditorStateExt extension
-
hasKeyChanged(
String key) → bool -
Available on SlangEditorState, provided by the SlangEditorStateExt extension
-
map<
TResult extends Object?> (TResult $default(_SlangEditorState value)) → TResult -
Available on SlangEditorState, provided by the SlangEditorStatePatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_SlangEditorState value)?) → TResult? -
Available on SlangEditorState, provided by the SlangEditorStatePatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_SlangEditorState value)?, {required TResult orElse()}) → TResult -
Available on SlangEditorState, provided by the SlangEditorStatePatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(Map< String, dynamic> slangJson, Map<String, dynamic> slangScopedJson, Map<String, dynamic> baseSlangJson, Map<String, dynamic> ovSlangJson, Set<String> scopedKeys, List<String> diffKeys, String? selectedKey, String? scrollToKey, bool disablePreviewFocus, List<String> searchResults, double progress)?, {required TResult orElse()}) → TResult -
Available on SlangEditorState, provided by the SlangEditorStatePatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ovVersion(
String key) → String -
Available on SlangEditorState, provided by the SlangEditorStateExt extension
-
toJson(
) → Map< String, dynamic> -
Serializes this SlangEditorState to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(Map< String, dynamic> slangJson, Map<String, dynamic> slangScopedJson, Map<String, dynamic> baseSlangJson, Map<String, dynamic> ovSlangJson, Set<String> scopedKeys, List<String> diffKeys, String? selectedKey, String? scrollToKey, bool disablePreviewFocus, List<String> searchResults, double progress)) → TResult -
Available on SlangEditorState, provided by the SlangEditorStatePatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(Map< String, dynamic> slangJson, Map<String, dynamic> slangScopedJson, Map<String, dynamic> baseSlangJson, Map<String, dynamic> ovSlangJson, Set<String> scopedKeys, List<String> diffKeys, String? selectedKey, String? scrollToKey, bool disablePreviewFocus, List<String> searchResults, double progress)?) → TResult? -
Available on SlangEditorState, provided by the SlangEditorStatePatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited