InteriorReference<T> class
A reference to an interior part of a Chest.
Constructors
-
InteriorReference(Chest chest, Path<
Object?> path, bool createImplicitly)
Properties
- chest → Chest
-
final
- createImplicitly → bool
-
final
- exists → bool
-
Whether the value that this reference points to exists.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- numberOfChildren → int
-
no setteroverride
-
path
→ Path<
Object?> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ T
-
The value this reference points to.
getter/setter pairoverride
- valueOrNull → T?
-
no setterinherited
Methods
-
child<
R> (Object? key, {bool createImplicitly = false}) → Reference< R> -
override
-
mutate(
void mutater(T value)) → void -
Updates the value by calling the mutating function and then saving the
value.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
T updater(T value)) → void -
Updates the value reference with the given function.
inherited
-
valueOr(
T orElse()) → T -
inherited
-
watch(
) → Stream< void> -
A Stream that fires evertime the value that this reference points to
changes.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited