ScrollEmitter class
- Inheritance
Constructors
- ScrollEmitter({double initialScrollOffset = 0.0, bool keepScrollOffset = true, String? debugLabel})
Properties
-
changes
→ Stream<
ContainerChange> -
The stream of Changes to notify your UI or other state elements that they should update.
latefinalinherited
-
children
→ List<
ChangeEmitter< Change> > -
Override to provide a list of all the
ChangeEmitter
s defined in your subclass. This will dispose all children when this class is disposed and will emit a ContainerChange whenever any of the children change so that UI or other elements of your state can update reactively. If you only want a subset of the children to trigger changes, override emittingChildren.no setteroverride - controller → ScrollController
-
final
- emitDetailedChanges → bool
-
Whether to emit changes that include detailed information about the specific change.
Defaults to false which will emit the same cached change object to
minimize garbage collection.
finalinherited
-
emittingChildren
→ List<
ChangeEmitter< ?Change> > -
A list of children that should trigger this container to emit changes. If you want all children
to trigger changes, then you don't need to override this getter.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
Whether this has been disposed.
no setterinherited
- offset → OffsetEmitter
-
final
-
parent
→ ChangeEmitter<
Change> ? -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addChangeToStream(
ContainerChange change) → void -
Used by subclasses to broadcast Changes.
inherited
-
animateTo(
double offset, {required Duration duration, required Curve curve}) → void -
containerChangeFromChildChange(
{ChangeEmitter< Change> ? child, Change? change, bool quiet = false}) → ContainerChange -
override this method in order to create and use your own subclass of ContainerChange
If you use EmitterContainer.emit then this function will be called with child and childChange as null
inherited
-
didRegisterParent(
) → void -
Will be called after parent is set and the ancestor tree is available.
inherited
-
dispose(
) → void -
Disposes resources of all children and this.
override
-
emit(
{bool quiet = false}) → void -
Emits
new ContainerChange.any
).inherited -
findAncestorOfExactType<
T extends ChangeEmitter< (Change> >) → T? -
inherited
-
jumpTo(
double offset) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerChild(
ChangeEmitter< Change> child) → void -
inherited
-
registerChildren(
) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited