CubeType class
Clase que representa un tipo de cubo de un usuario.
Constructors
Properties
- cubeName ↔ String
-
Nombre del tipo de cubo.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- idCube ↔ int?
-
Identificador único del cubo (puede ser nulo si aún no está asignado).
getter/setter pair
- idUser ↔ int?
-
Identificador del usuario asociado al cubo (opcional).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveToPreferences(
SharedPreferences prefs) → Future< void> - Guarda los datos del tipo de cubo actual en SharedPreferences.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- preferences ↔ SharedPreferences
-
Instancia de las preferencias compartidas.
getter/setter pair
Static Methods
-
loadFromPreferences(
SharedPreferences prefs) → CubeType -
Recupera un objeto
CubeType
desde los datos guardados enSharedPreferences
. -
startPreferences(
) → Future< void> - Inicializa las preferencias compartidas con valores por defecto si aún no existen.