MenuDecoration<T> class
Constructors
-
MenuDecoration({EdgeInsets? margin, double? height, double? width, BoxDecoration? backgroundDecoration, ButtonStyle? buttonStyle, TextStyle? textStyle, MenuAlignment? alignment, Duration? animationDuration, Widget separatorBuilder(BuildContext context, int index)?, Widget childBuilder(BuildContext context, Option<
T> option, bool isSelected)?})
Properties
- alignment → MenuAlignment?
-
Aligning
optionsMenu(left, center, right)final - animationDuration → Duration?
-
Time it takes to open or close the options' menu
final
- backgroundDecoration → BoxDecoration?
-
BoxDecoration for options' menu.
final
-
Style of default
TextButtonifoptionBuilderis not providedfinal -
childBuilder
→ Widget Function(BuildContext context, Option<
T> option, bool isSelected)? -
Specifies
childwidget of a defaultTextButtonmenu option widget.final - hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
Specifies overall
heightof options' menu. Default is365.0.final - margin → EdgeInsets?
-
Margin from
TextFormField.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- separatorBuilder → Widget Function(BuildContext context, int index)?
-
Separates
optionsby provided widget. Will be called with indices greater than or equal to zero and less thanoptions.length - 1.final - textStyle → TextStyle?
-
Style of deafult
Textwidget ifoptionBuilderis not providedfinal - width → double?
-
Specifies
widthof options' menu.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited