M3EBottomSheetController class

Drives a bottom sheet without dragging.

It is the single-pointer alternative to the drag handle. Pass it to M3EBottomSheet.show or M3EBottomSheet.standard.

Inheritance

Constructors

M3EBottomSheetController()
M3EBottomSheetController.

Properties

availableValues → List<M3EBottomSheetValue>
Preset heights of the attached sheet, lowest first.
no setter
extent → double
Visible height in dp; 0 when detached.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
isAttached → bool
Whether a sheet is attached.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → M3EBottomSheetValue
Current resting value; hidden when detached.
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
animateTo(M3EBottomSheetValue value) → Future<void>
Springs to value when it is available.
attach(M3EBottomSheetControllerClient client) → void
Binds client. Called by the sheet.
close([Object? result]) → void
Closes the sheet; a modal sheet pops with result.
collapse() → Future<void>
Springs back to the initial (collapsed) height.
cycle() → Future<void>
Moves to the next taller height, wrapping to the lowest.
detach(M3EBottomSheetControllerClient client) → void
Unbinds client. Called by the sheet.
dispose() → void
Discards any resources used by the object.
override
expand() → Future<void>
Springs to the tallest height.
hide() → Future<void>
Hides a standard sheet, or closes a modal one.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
show() → Future<void>
Shows a hidden standard sheet at its collapsed height.
toString() → String
A string representation of this object.
inherited
updateValue(M3EBottomSheetValue value) → void
Reports a new resting value. Called by the sheet.

Operators

operator ==(Object other) → bool
The equality operator.
inherited