IndexManager class
This package manages multiple indexes identified by name and supports serialization and deserialization.
Author Masahide Mori
First edition creation date 2023-05-29 20:56:54
Constructors
- IndexManager()
- Constructor
-
IndexManager.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(
) → IndexManager - (en)Returns new manager that copied the contents of this manager.
-
getIndex(
String name, {int? initialValue = 0, bool isAlwaysInitialize = false}) → int? - (en)Returns an index with the specified name if it has been generated, otherwise it is generated.
-
getMap(
) → Map< String, int?> - (en)Returns a managed map. Do not normally call this directly.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setIndex(
String name, int? value) → void - (en) If an index 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