DiveCoreElements class
The core elements used in a Dive app.
- Available Extensions
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
-
provider
→ StateProvider<
DiveCoreElementsState> -
Create a Riverpod provider to maintain the state.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- state → DiveCoreElementsState
-
The current state. Changes to this state do not get saved and are not
sent to notifiers. To change the state, use updateState.
read-only
Methods
-
changeCurrentScene(
DiveScene scene) → void -
Change the current scene to this
scene
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAllScenes(
) → void - Remove all scense disposing of them first, and clear the current scene.
-
removeImageSource(
DiveImageSource source) → void - Remove iamge source from the current scene.
-
removeMediaSource(
DiveMediaSource source) → void - Remove media source from the current scene.
-
removeSource(
DiveSource source, Iterable< DiveSource> sources) → void - Remove a source.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateState(
DiveCoreElementsState onChangeState(DiveCoreElementsState state)) → void - Update the current state. Changes to this state are saved and are sent to notifiers. This method is good for making many state changes, and then having only one change sent the notifiers.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited