ValueManager class

This package manages multiple values identified by name and supports serialization and deserialization.

Author Masahide Mori

First edition creation date 2023-06-19 20:39:00

Constructors

ValueManager()
Constructor
ValueManager.fromDict(Map<String, dynamic> src)
(en)Restore this object from the dictionary. If data with the same key already exists, it will be overwritten.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone() ValueManager
(en)Returns new manager that copied the contents of this manager.
getMap() Map<String, double?>
(en)Returns a managed map. Do not normally call this directly.
getValue(String name, {double? initialValue, bool isAlwaysInitialize = false}) double?
(en)Returns an value with the specified name if it has been generated, otherwise it is generated.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setValue(String name, double? value) → void
(en) If an variable with the specified name has already been created, value is assigned to it, otherwise value is assigned to a newly created variable.
toDict({List<String>? nonSaveKeys}) Map<String, dynamic>
(en)Convert the object to a dictionary.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

className → const String
version → const String