MapSignalMixin<K, V, T extends Map<K, V>> mixin

Mixin to upgrade an map signal with reactive properties

Superclass constraints
Implemented types
Available extensions

Properties

$ Signal<Map<K, V>>

Available on Map<K, V>, provided by the SignalMapExtensions extension

Return a signal from a Map value
no setter
autoDispose bool
Throws and error if read after dispose and can be disposed on last unsubscribe.
getter/setter pairinherited
beautifiedJson String

Available on Map<String, dynamic>, provided by the BeautifiedJson extension

Returns a beautified JSON string representation.
no setter
debugLabel String?
Debug label for Debug Mode
finalinherited
disposed bool
Check if the effect is disposed
getter/setter pairinherited
encodedJsonString String

Available on Map<String, dynamic>, provided by the BeautifiedJsonMapExtension extension

no setter
encodeWithIndent String

Available on Map<K, V>, provided by the JsonMapX extension

Convenience getter used by ConversionException.toString().
no setter
entries Iterable<MapEntry<K, V>>
The map entries of this Map.
no setteroverride
entries Iterable<MapEntry<K, V>>

Available on ReadonlySignal<Map<K, V>>, provided by the ReadonlyMapSignalExtension extension

no setter
equalityCheck bool Function(T a, T b)
Optional method to check if to values are the same
getter/setter pairinherited
globalId int
finalinherited
hashCode int
The hash code for this object.
no setterinherited
internalValue → T
no setterinherited
isEmpty bool
Whether there is no key/value pair in the map.
no setteroverride
isEmpty bool

Available on ReadonlySignal<Map<K, V>>, provided by the ReadonlyMapSignalExtension extension

no setter
isEmptyOrNull bool

Available on Map<K, V>?, provided by the DHUMapNullableExtension extension

Returns true when the map is null or empty.
no setter
isInitialized bool
Check if a signal value is set (does not subscribe)
no setterinherited
isNotEmpty bool
Whether there is at least one key/value pair in the map.
no setteroverride
isNotEmpty bool

Available on ReadonlySignal<Map<K, V>>, provided by the ReadonlyMapSignalExtension extension

no setter
isNotEmptyOrNull bool

Available on Map<K, V>?, provided by the DHUMapNullableExtension extension

Returns true when the map is non-null and not empty.
no setter
keys Iterable<K>
The keys of this Map.
no setteroverride
keys Iterable<K>

Available on ReadonlySignal<Map<K, V>>, provided by the ReadonlyMapSignalExtension extension

no setter
keysList List<K>

Available on Map<K, V>, provided by the MapConversionX extension

Returns a list containing all the keys in the map.
no setter
keysSet Set<K>

Available on Map<K, V>, provided by the MapConversionX extension

Returns a set containing all the keys in the map.
no setter
length int
The number of key/value pairs in the map.
no setteroverride
length int

Available on ReadonlySignal<Map<K, V>>, provided by the ReadonlyMapSignalExtension extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ T
Compute the current value
getter/setter pairinherited
values Iterable<V>
The values of this Map.
no setteroverride
values Iterable<V>

Available on ReadonlySignal<Map<K, V>>, provided by the ReadonlyMapSignalExtension extension

no setter
valuesList List<V>

Available on Map<K, V>, provided by the MapConversionX extension

Returns a list containing all the values in the map.
no setter
valuesSet Set<V>

Available on Map<K, V>, provided by the MapConversionX extension

Returns a set containing all the values in the map.
no setter
version int
Version numbers should always be >= 0, because the special value -1 is used by Nodes to signify potentially unused but recyclable nodes.
getter/setter pairinherited

Methods

addAll(Map<K, V> other) → void
Adds all key/value pairs of other to this map.
override
addAll(Map<K, V> other) → void

Available on Signal<Map<K, V>>, provided by the MapSignalExtension extension

addEntries(Iterable<MapEntry<K, V>> newEntries) → void
Adds all key/value pairs of newEntries to this map.
override
addEntries(Iterable<MapEntry<K, V>> newEntries) → void

Available on Signal<Map<K, V>>, provided by the MapSignalExtension extension

afterCreate(T val) → void
Internal hook for after a signal is created
inherited
beforeUpdate(T val) → void
Internal hook for after a signal is updated
inherited
call() → T
Return the value when invoked
inherited
cast<RK, RV>() Map<RK, RV>
Provides a view of this map as having RK keys and RV instances, if necessary.
override
cast<RK, RV>() Map<RK, RV>

Available on ReadonlySignal<Map<K, V>>, provided by the ReadonlyMapSignalExtension extension

clear() → void
Removes all entries from the map.
override
clear() → void

Available on Signal<Map<K, V>>, provided by the MapSignalExtension extension

containsKey(Object? key) bool
Whether this map contains the given key.
override
containsKey(Object? key) bool

Available on ReadonlySignal<Map<K, V>>, provided by the ReadonlyMapSignalExtension extension

containsValue(Object? value) bool
Whether this map contains the given value.
override
containsValue(Object? value) bool

Available on ReadonlySignal<Map<K, V>>, provided by the ReadonlyMapSignalExtension extension

convertMapToList() List

Available on Map, provided by the OnMapExtensions extension

deepMerge(Map<String, Object?> other) Map<String, Object?>

Available on Map<K, V>, provided by the DHUMapExt extension

Deep merges this map with other and returns a new map.
dispose() → void
Dispose the signal
inherited
elementAtIntIndex(int index) → V

Available on Map<K, V>, provided by the GetByKeyIndex extension

Returns the value at the given zero-based index in iteration order. Throws if the index is out of range.
filter(bool predicate(K key, V value)) Map<K, V>

Available on Map<K, V>, provided by the DHUMapExtension extension

Filters the map, retaining only entries that satisfy the given predicate.
flatMap({String delimiter = '.', bool excludeArrays = false}) Map<String, Object?>

Available on Map<K, V>, provided by the DHUMapExt extension

Flattens a nested map into a single-level map.
forEach(void action(K key, V value)) → void

Available on Signal<Map<K, V>>, provided by the MapSignalExtension extension

forEach(void action(K key, V value)) → void
Applies action to each key/value pair of the map.
override
get() → T
Helper method to get the current value
inherited
getBigInt(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, BigInt? defaultValue, ElementConverter<BigInt>? converter}) BigInt

Available on Map<K, V>, provided by the MapConversionX extension

Converts the value at key (or alternativeKeys) to BigInt.
getBool(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, bool? defaultValue, ElementConverter<bool>? converter}) bool

Available on Map<K, V>, provided by the MapConversionX extension

Converts the value at key (or alternativeKeys) to bool.
getDateTime(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, String? format, String? locale, bool autoDetectFormat = false, bool useCurrentLocale = false, bool utc = false, DateTime? defaultValue, ElementConverter<DateTime>? converter}) DateTime

Available on Map<K, V>, provided by the MapConversionX extension

Converts the value at key (or alternativeKeys) to DateTime.
getDouble(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, double? defaultValue, String? format, String? locale, ElementConverter<double>? converter}) double

Available on Map<K, V>, provided by the MapConversionX extension

Converts the value at key (or alternativeKeys) to double.
getEnum<T extends Enum>(K key, {required T parser(dynamic), List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, T? defaultValue, Map<String, dynamic>? debugInfo}) → T

Available on Map<K, V>, provided by the MapConversionX extension

Converts the value at key (or alternativeKeys) to an enum using parser.
getInt(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, int? defaultValue, String? format, String? locale, ElementConverter<int>? converter}) int

Available on Map<K, V>, provided by the MapConversionX extension

Converts the value at key (or alternativeKeys) to int.
getList<T>(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, List<T>? defaultValue, ElementConverter<T>? elementConverter}) List<T>

Available on Map<K, V>, provided by the MapConversionX extension

Converts the value at key (or alternativeKeys) to a List of T.
getMap<K2, V2>(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, Map<K2, V2>? defaultValue, ElementConverter<K2>? keyConverter, ElementConverter<V2>? valueConverter}) Map<K2, V2>

Available on Map<K, V>, provided by the MapConversionX extension

Converts the value at key (or alternativeKeys) to a Map of K2 to V2.
getNum(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, num? defaultValue, String? format, String? locale, ElementConverter<num>? converter}) num

Available on Map<K, V>, provided by the MapConversionX extension

Converts the value at key (or alternativeKeys) to num.
getPath(String path, {String delimiter = '.', bool parseIndices = true}) Object?

Available on Map<K, V>, provided by the DHUMapExt extension

Reads a value from a nested map using path (e.g., "a.b.c").
getSet<T>(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, Set<T>? defaultValue, ElementConverter<T>? elementConverter}) Set<T>

Available on Map<K, V>, provided by the MapConversionX extension

Converts the value at key (or alternativeKeys) to a Set of T.
getString(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, String? defaultValue, ElementConverter<String>? converter}) String

Available on Map<K, V>, provided by the MapConversionX extension

Converts the value at key (or alternativeKeys) to String.
getUri(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, Uri? defaultValue, ElementConverter<Uri>? converter}) Uri

Available on Map<K, V>, provided by the MapConversionX extension

Converts the value at key (or alternativeKeys) to Uri.
inj({bool autoDisposeWhenNotUsed = true}) ReactiveModel<Map<T, D>>

Available on Map<T, D>, provided by the MapX extension

create a ReactiveModel state
internalRefresh() bool
inherited
intlSelect(Object choice, {String? desc, Map<String, Object>? examples, String? locale, String? name, List<Object>? args, String? meaning, bool? skip}) String

Available on Map<Object, String>, provided by the IntlMapStringExtension extension

Format a message differently depending on choice.
intlSelectLogic(Object choice) → T

Available on Map<Object, T>, provided by the IntlMapExtension extension

Internal: Implements the logic for select - use intlSelect for normal messages.
isPrimitive() bool

Available on Map<K, V>?, provided by the DHUMapNullableExtension extension

Returns true when every key and value is a primitive value.
joinWithMap(String separator, {String keyValueSeparator = '='}) String

Available on Map<String, dynamic>, provided by the MapExt extension

keysWhere(bool condition(V)) Iterable<K>

Available on Map<K, V>, provided by the DHUMapExtension extension

Returns an iterable of keys where the associated values satisfy the given condition.
map<K2, V2>(MapEntry<K2, V2> convert(K key, V value)) Map<K2, V2>
Returns a new map where all entries of this map are transformed by the given convert function.
override
map<K2, V2>(MapEntry<K2, V2> convert(K key, V value)) Map<K2, V2>

Available on ReadonlySignal<Map<K, V>>, provided by the ReadonlyMapSignalExtension extension

mapValues<V2>(V2 transform(V)) Map<K, V2>

Available on Map<K, V>, provided by the DHUMapExtension extension

Transforms the values in this map using the given function.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDispose(void cleanup()) → void Function()
Add a cleanup function to be called when the signal is disposed
inherited
overrideWith(T val) Signal<T>
Override the current signal with a new value as if it was created with it
inherited
parse<T, K2, V2>(K key, T converter(Map<K2, V2> json)) → T

Available on Map<K, V>, provided by the MapConversionX extension

Parses the nested map at key using the provided converter.
peek() → T
In the rare instance that you have an effect that should write to another signal based on the previous value, but you don't want the effect to be subscribed to that signal, you can read a signals's previous value via signal.peek().
inherited
putIfAbsent(K key, V ifAbsent()) → V
Look up the value of key, or add a new entry if it isn't there.
override
putIfAbsent(K key, V ifAbsent()) → V

Available on Signal<Map<K, V>>, provided by the MapSignalExtension extension

readonly() ReadonlySignal<T>
Returns a readonly signal
inherited
remove(Object? key) → V?
Removes key and its associated value, if present, from the map.
override
remove(Object? key) → V?

Available on Signal<Map<K, V>>, provided by the MapSignalExtension extension

removeWhere(bool test(K key, V value)) → void
Removes all entries of this map that satisfy the given test.
override
removeWhere(bool test(K key, V value)) → void

Available on Signal<Map<K, V>>, provided by the MapSignalExtension extension

set(T val, {bool force = false}) bool
Set the current value by a method
inherited
setIfMissing(K key, V value) → V

Available on Map<K, V>, provided by the DHUMapExtension extension

Inserts a key-value pair into the map if the key does not already exist.
setPath(String path, Object? value, {String delimiter = '.', bool parseIndices = true}) bool

Available on Map<K, V>, provided by the DHUMapExt extension

Writes a value into a nested map using path (e.g., "a.b.c").
subscribe(void fn(T value)) → void Function()
Subscribe to value changes with a dispose function
inherited
subscribeToNode(Node node) → void
inherited
swapKeysWithValues() Map<V, K>

Available on Map<K, V>, provided by the DHUMapExtension extension

Swaps the keys with values in the map. Note: If there are duplicate values, the last key-value pair will be kept.
toJson() → dynamic
Convert value to JSON
inherited
toJson() String

Available on Map<String, TimeOfDay>, provided by the MapStringTimeOfDayJsonExtension extension

toJsonMap({JsonOptions options = const JsonOptions(), Object? toEncodable(dynamic object)?}) Map<String, dynamic>

Available on Map<K, V>, provided by the JsonMapX extension

Converts this map to a Map<String, dynamic> with JSON-encodable values.
toJsonString({String? indent, JsonOptions options = const JsonOptions(), Object? toEncodable(dynamic object)?}) String

Available on Map<K, V>, provided by the JsonMapX extension

Converts this map to a JSON string (pretty if indent is provided).
toMap() Map<K, V>
Snapshot of MapEntries
toSignal({String? debugLabel, bool autoDispose = false}) MapSignal<K, V>

Available on Map<K, V>, provided by the SignalMapUtils extension

Convert an existing list to MapSignal
toString() String
A string representation of this object.
inherited
tryGetBigInt(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, BigInt? defaultValue, ElementConverter<BigInt>? converter}) BigInt?

Available on Map<K, V>?, provided by the NullableMapConversionX extension

Tries to convert the value at key (or alternativeKeys) to BigInt.
tryGetBool(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, bool? defaultValue, ElementConverter<bool>? converter}) bool?

Available on Map<K, V>?, provided by the NullableMapConversionX extension

Tries to convert the value at key (or alternativeKeys) to bool.
tryGetDateTime(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, String? format, String? locale, bool autoDetectFormat = false, bool useCurrentLocale = false, bool utc = false, DateTime? defaultValue, ElementConverter<DateTime>? converter}) DateTime?

Available on Map<K, V>?, provided by the NullableMapConversionX extension

Tries to convert the value at key (or alternativeKeys) to DateTime.
tryGetDouble(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, double? defaultValue, String? format, String? locale, ElementConverter<double>? converter}) double?

Available on Map<K, V>?, provided by the NullableMapConversionX extension

Tries to convert the value at key (or alternativeKeys) to double.
tryGetEnum<T extends Enum>(K key, {required T parser(dynamic), List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, T? defaultValue, Map<String, dynamic>? debugInfo}) → T?

Available on Map<K, V>?, provided by the NullableMapConversionX extension

Tries to convert the value at key (or alternativeKeys) to an enum using parser.
tryGetInt(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, int? defaultValue, String? format, String? locale, ElementConverter<int>? converter}) int?

Available on Map<K, V>?, provided by the NullableMapConversionX extension

Tries to convert the value at key (or alternativeKeys) to int.
tryGetList<T>(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, List<T>? defaultValue, ElementConverter<T>? elementConverter}) List<T>?

Available on Map<K, V>?, provided by the NullableMapConversionX extension

Tries to convert the value at key (or alternativeKeys) to a List of T.
tryGetMap<K2, V2>(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, Map<K2, V2>? defaultValue, ElementConverter<K2>? keyConverter, ElementConverter<V2>? valueConverter}) Map<K2, V2>?

Available on Map<K, V>?, provided by the NullableMapConversionX extension

Tries to convert the value at key (or alternativeKeys) to a Map of K2 to V2.
tryGetNum(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, num? defaultValue, String? format, String? locale, ElementConverter<num>? converter}) num?

Available on Map<K, V>?, provided by the NullableMapConversionX extension

Tries to convert the value at key (or alternativeKeys) to num.
tryGetSet<T>(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, Set<T>? defaultValue, ElementConverter<T>? elementConverter}) Set<T>?

Available on Map<K, V>?, provided by the NullableMapConversionX extension

Tries to convert the value at key (or alternativeKeys) to a Set of T.
tryGetString(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, String? defaultValue, ElementConverter<String>? converter}) String?

Available on Map<K, V>?, provided by the NullableMapConversionX extension

Tries to convert the value at key (or alternativeKeys) to String.
tryGetUri(K key, {List<K>? alternativeKeys, dynamic innerKey, int? innerListIndex, Uri? defaultValue, ElementConverter<Uri>? converter}) Uri?

Available on Map<K, V>?, provided by the NullableMapConversionX extension

Tries to convert the value at key (or alternativeKeys) to Uri.
tryParse<T, K2, V2>(K key, T converter(Map<K2, V2> json)) → T?

Available on Map<K, V>, provided by the MapConversionX extension

Tries to parse the nested map at key using the provided converter.
unflatten({String delimiter = '.', bool parseIndices = true}) Map<String, Object?>

Available on Map<K, V>, provided by the DHUMapExt extension

Rebuilds a nested map from a flattened map.
unsubscribeFromNode(Node node) → void
inherited
update(K key, V update(V value), {V ifAbsent()?}) → V

Available on Signal<Map<K, V>>, provided by the MapSignalExtension extension

update(K key, V update(V value), {V ifAbsent()?}) → V
Updates the value for the provided key.
override
updateAll(V update(K key, V value)) → void

Available on Signal<Map<K, V>>, provided by the MapSignalExtension extension

updateAll(V update(K key, V value)) → void
Updates all values.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](Object? key) → V?
The value for the given key, or null if key is not in the map.
override
operator [](Object? key) → V?

Available on ReadonlySignal<Map<K, V>>, provided by the ReadonlyMapSignalExtension extension

operator []=(K key, V value) → void
Associates the key with the given value.
override
operator []=(K key, V value) → void

Available on Signal<Map<K, V>>, provided by the MapSignalExtension extension