PopupButtonType class sealed

Annotations
  • @freezed

Constructors

PopupButtonType.multiButton({required String leftButtonLabel, @Default.new(null) void onPressedLeftButton()?, required String rightButtonLabel, @Default.new(null) void onPressedRightButton()?})
const
factory
PopupButtonType.singleButton({required String label, @Default.new(null) void onPressed()?})
const
factory
PopupButtonType.verticalMultiButton({required String topButtonLabel, @Default.new(null) void onPressedTopButton()?, required String bottomButtonLabel, @Default.new(null) void onPressedBottomButton()?})
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult singleButton(SinglePopupButton value), required TResult multiButton(MultiPopupButton value), required TResult verticalMultiButton(VerticalMultiPopupButton value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? singleButton(SinglePopupButton value)?, TResult? multiButton(MultiPopupButton value)?, TResult? verticalMultiButton(VerticalMultiPopupButton value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult singleButton(SinglePopupButton value)?, TResult multiButton(MultiPopupButton value)?, TResult verticalMultiButton(VerticalMultiPopupButton value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult singleButton(String label, void onPressed()?)?, TResult multiButton(String leftButtonLabel, void onPressedLeftButton()?, String rightButtonLabel, void onPressedRightButton()?)?, TResult verticalMultiButton(String topButtonLabel, void onPressedTopButton()?, String bottomButtonLabel, void onPressedBottomButton()?)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult singleButton(String label, void onPressed()?), required TResult multiButton(String leftButtonLabel, void onPressedLeftButton()?, String rightButtonLabel, void onPressedRightButton()?), required TResult verticalMultiButton(String topButtonLabel, void onPressedTopButton()?, String bottomButtonLabel, void onPressedBottomButton()?)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? singleButton(String label, void onPressed()?)?, TResult? multiButton(String leftButtonLabel, void onPressedLeftButton()?, String rightButtonLabel, void onPressedRightButton()?)?, TResult? verticalMultiButton(String topButtonLabel, void onPressedTopButton()?, String bottomButtonLabel, void onPressedBottomButton()?)?}) → TResult?
inherited

Operators

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