Button<T extends ButtonController> class

Inheritance

Constructors

Button({Key? key, T? controller, OnViewActivator? onActivator, OnViewChangeListener? onChange, OnViewErrorListener? onError, OnViewHoverListener? onHover, OnViewValidListener? onValid, OnViewValidatorListener? onValidator, ViewClickEffect? clickEffect, OnViewClickListener? onClick, OnViewClickListener? onDoubleClick, OnViewClickListener? onLongClick, OnViewToggleListener? onToggleClick, OnViewNotifyListener<T>? onClickHandler, OnViewNotifyListener<T>? onDoubleClickHandler, OnViewNotifyListener<T>? onLongClickHandler, bool? absorbMode, bool? activated, Color? background, ValueState<Color>? backgroundState, BlendMode? backgroundBlendMode, Gradient? backgroundGradient, ValueState<Gradient>? backgroundGradientState, DecorationImage? backgroundImage, ValueState<DecorationImage>? backgroundImageState, Clip? clipBehavior, double? dimensionRatio, double? elevation, bool? enabled, bool? expandable, Color? foreground, BlendMode? foregroundBlendMode, Gradient? foregroundGradient, DecorationImage? foregroundImage, int? flex, Alignment? gravity, double? height, ValueState<double>? heightState, double? heightMax, double? heightMin, Color hoverColor = Colors.transparent, Axis? orientation, ViewPosition? position, ViewPositionType? positionType, Color pressedColor = Colors.transparent, Color rippleColor = Colors.transparent, bool? scrollable, ScrollController? scrollController, ViewScrollingType? scrollingType, ViewShape? shape, Matrix4? transform, Alignment? transformGravity, bool? visibility, double? width, ValueState<double>? widthState, double? widthMax, double? widthMin, int? animation, Curve? animationType, ImageFilter? backdropFilter, BlendMode? backdropMode, Color? borderColor, ValueState<Color>? borderColorState, double? borderSize, ValueState<double>? borderSizeState, double? borderHorizontal, ValueState<double>? borderHorizontalState, double? borderVertical, ValueState<double>? borderVerticalState, double? borderTop, ValueState<double>? borderTopState, double? borderBottom, ValueState<double>? borderBottomState, double? borderStart, ValueState<double>? borderStartState, double? borderEnd, ValueState<double>? borderEndState, double? borderStrokeAlign, double? borderRadius, ValueState<double>? borderRadiusState, double? borderRadiusBL, ValueState<double>? borderRadiusBLState, double? borderRadiusBR, ValueState<double>? borderRadiusBRState, double? borderRadiusTL, ValueState<double>? borderRadiusTLState, double? borderRadiusTR, ValueState<double>? borderRadiusTRState, bool indicatorVisible = false, double? margin, double? marginHorizontal, double? marginVertical, double? marginTop, double? marginBottom, double? marginStart, double? marginEnd, EdgeInsets? marginCustom, double? opacity, ValueState<double>? opacityState, bool opacityAlwaysIncludeSemantics = false, double? padding, double? paddingHorizontal, double? paddingVertical, double? paddingTop, double? paddingBottom, double? paddingStart, double? paddingEnd, EdgeInsets? paddingCustom, double? shadow, double? shadowBlurRadius, BlurStyle? shadowBlurStyle, Color? shadowColor, ViewShadowType? shadowType, double? shadowSpreadRadius, double? shadowHorizontal, double? shadowVertical, double? shadowStart, double? shadowEnd, double? shadowTop, double? shadowBottom, String? text, double? textSize, FontWeight? textFontWeight, TextStyle? textStyle, bool textAllCaps = false, Color? textColor, ValueState<Color>? textColorState, ValueState<String>? textState, dynamic icon, ValueState? iconState, IconAlignment iconAlignment = IconAlignment.end, bool iconFlexible = false, bool iconOnly = false, double? iconSize, ValueState<double>? iconSizeState, Color? iconTint, ValueState<Color>? iconTintState, bool iconTintEnabled = true, double? iconSpace, bool textCenter = false})
const

Properties

absorbMode bool?
finalinherited
activated bool?
finalinherited
animation int?
finalinherited
animationType Curve?
finalinherited
backdropFilter ImageFilter?
BACKDROP PROPERTIES
finalinherited
backdropMode BlendMode?
finalinherited
background Color?
finalinherited
backgroundBlendMode BlendMode?
finalinherited
backgroundGradient Gradient?
finalinherited
backgroundGradientState ValueState<Gradient>?
finalinherited
backgroundImage DecorationImage?
finalinherited
backgroundImageState ValueState<DecorationImage>?
finalinherited
backgroundState ValueState<Color>?
finalinherited
borderBottom double?
finalinherited
borderBottomState ValueState<double>?
finalinherited
borderColor Color?
BORDER PROPERTIES
finalinherited
borderColorState ValueState<Color>?
finalinherited
borderEnd double?
finalinherited
borderEndState ValueState<double>?
finalinherited
borderHorizontal double?
finalinherited
borderHorizontalState ValueState<double>?
finalinherited
borderRadius double?
BORDER RADIUS PROPERTIES
finalinherited
borderRadiusBL double?
finalinherited
borderRadiusBLState ValueState<double>?
finalinherited
borderRadiusBR double?
finalinherited
borderRadiusBRState ValueState<double>?
finalinherited
borderRadiusState ValueState<double>?
finalinherited
borderRadiusTL double?
finalinherited
borderRadiusTLState ValueState<double>?
finalinherited
borderRadiusTR double?
finalinherited
borderRadiusTRState ValueState<double>?
finalinherited
borderSize double?
finalinherited
borderSizeState ValueState<double>?
finalinherited
borderStart double?
finalinherited
borderStartState ValueState<double>?
finalinherited
borderStrokeAlign double?
finalinherited
borderTop double?
finalinherited
borderTopState ValueState<double>?
finalinherited
borderVertical double?
finalinherited
borderVerticalState ValueState<double>?
finalinherited
child Widget?
finalinherited
clickEffect ViewClickEffect?
CLICK PROPERTIES
finalinherited
clipBehavior Clip?
finalinherited
controller → T?
ROOT PROPERTIES
finalinherited
dimensionRatio double?
finalinherited
elevation double?
finalinherited
ellipsis String?
finalinherited
enabled bool?
finalinherited
expandable bool?
finalinherited
flex int?
finalinherited
foreground Color?
finalinherited
foregroundBlendMode BlendMode?
finalinherited
foregroundGradient Gradient?
finalinherited
foregroundImage DecorationImage?
finalinherited
gravity Alignment?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height double?
finalinherited
heightMax double?
finalinherited
heightMin double?
finalinherited
heightState ValueState<double>?
finalinherited
hoverColor Color
finalinherited
icon → dynamic
final
iconAlignment IconAlignment
final
iconFlexible bool
final
iconOnly bool
final
iconSize double?
final
iconSizeState ValueState<double>?
final
iconSpace double?
final
iconState ValueState?
final
iconTint Color?
final
iconTintEnabled bool
final
iconTintState ValueState<Color>?
final
indicatorVisible bool
INDICATOR PROPERTIES
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
letterSpacing double?
finalinherited
lineSpacingExtra double
finalinherited
locale Locale?
finalinherited
margin double?
MARGIN PROPERTIES
finalinherited
marginBottom double?
finalinherited
marginCustom EdgeInsets?
finalinherited
marginEnd double?
finalinherited
marginHorizontal double?
finalinherited
marginStart double?
finalinherited
marginTop double?
finalinherited
marginVertical double?
finalinherited
maxCharacters int
finalinherited
maxLines int?
finalinherited
onActivator OnViewActivator?
CALLBACK PROPERTIES
finalinherited
onChange OnViewChangeListener?
finalinherited
onClick OnViewClickListener?
finalinherited
onClickHandler OnViewNotifyListener<T>?
finalinherited
onDoubleClick OnViewClickListener?
finalinherited
onDoubleClickHandler OnViewNotifyListener<T>?
finalinherited
onError OnViewErrorListener?
finalinherited
onHover OnViewHoverListener?
finalinherited
onLongClick OnViewClickListener?
finalinherited
onLongClickHandler OnViewNotifyListener<T>?
finalinherited
onPrefixClick OnViewClickListener?
finalinherited
onSuffixClick OnViewClickListener?
finalinherited
onTextClick OnViewClickListener?
finalinherited
onToggleClick OnViewToggleListener?
finalinherited
onValid OnViewValidListener?
finalinherited
onValidator OnViewValidatorListener?
finalinherited
opacity double?
OPACITY PROPERTIES
finalinherited
opacityAlwaysIncludeSemantics bool
finalinherited
opacityState ValueState<double>?
finalinherited
orientation Axis?
finalinherited
padding double?
PADDING PROPERTIES
finalinherited
paddingBottom double?
finalinherited
paddingCustom EdgeInsets?
finalinherited
paddingEnd double?
finalinherited
paddingHorizontal double?
finalinherited
paddingStart double?
finalinherited
paddingTop double?
finalinherited
paddingVertical double?
finalinherited
position ViewPosition?
finalinherited
positionType ViewPositionType?
finalinherited
prefixFontStyle FontStyle?
PREFIX
finalinherited
prefixFontWeight FontWeight?
finalinherited
prefixFontWeightState ValueState<FontWeight>?
finalinherited
prefixText String?
finalinherited
prefixTextAllCaps bool
finalinherited
prefixTextColor Color?
finalinherited
prefixTextColorState ValueState<Color>?
finalinherited
prefixTextDecoration TextDecoration?
finalinherited
prefixTextDecorationColor Color?
finalinherited
prefixTextDecorationStyle TextDecorationStyle?
finalinherited
prefixTextDecorationThickness double?
finalinherited
prefixTextLetterSpace double?
finalinherited
prefixTextSize double?
finalinherited
prefixTextSizeState ValueState<double>?
finalinherited
prefixTextState ValueState<String>?
finalinherited
prefixTextStyle TextStyle?
finalinherited
prefixTextStyleState ValueState<TextStyle>?
finalinherited
prefixTextVisible bool
finalinherited
pressedColor Color
finalinherited
rippleColor Color
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollable bool?
finalinherited
scrollController ScrollController?
finalinherited
scrollingType ViewScrollingType?
finalinherited
selectionColor Color?
finalinherited
semanticsLabel String?
finalinherited
shadow double?
SHADOW PROPERTIES
finalinherited
shadowBlurRadius double?
finalinherited
shadowBlurStyle BlurStyle?
finalinherited
shadowBottom double?
finalinherited
shadowColor Color?
finalinherited
shadowEnd double?
finalinherited
shadowHorizontal double?
finalinherited
shadowSpreadRadius double?
finalinherited
shadowStart double?
finalinherited
shadowTop double?
finalinherited
shadowType ViewShadowType?
finalinherited
shadowVertical double?
finalinherited
shape ViewShape?
finalinherited
softWrap bool?
finalinherited
strutStyle StrutStyle?
finalinherited
suffixFontStyle FontStyle?
SUFFIX
finalinherited
suffixFontWeight FontWeight?
finalinherited
suffixFontWeightState ValueState<FontWeight>?
finalinherited
suffixText String?
finalinherited
suffixTextAllCaps bool
finalinherited
suffixTextColor Color?
finalinherited
suffixTextColorState ValueState<Color>?
finalinherited
suffixTextDecoration TextDecoration?
finalinherited
suffixTextDecorationColor Color?
finalinherited
suffixTextDecorationStyle TextDecorationStyle?
finalinherited
suffixTextDecorationThickness double?
finalinherited
suffixTextLetterSpace double?
finalinherited
suffixTextSize double?
finalinherited
suffixTextSizeState ValueState<double>?
finalinherited
suffixTextState ValueState<String>?
finalinherited
suffixTextStyle TextStyle?
finalinherited
suffixTextStyleState ValueState<TextStyle>?
finalinherited
suffixTextVisible bool
finalinherited
text String?
finalinherited
textAlign TextAlign?
finalinherited
textAllCaps bool
finalinherited
textCenter bool
final
textColor Color?
finalinherited
textColorState ValueState<Color>?
finalinherited
textDecoration TextDecoration?
finalinherited
textDecorationColor Color?
finalinherited
textDecorationStyle TextDecorationStyle?
finalinherited
textDecorationThickness double?
finalinherited
textDirection TextDirection?
finalinherited
textFontFamily String?
finalinherited
textFontStyle FontStyle?
finalinherited
textFontWeight FontWeight?
finalinherited
textFontWeightState ValueState<FontWeight>?
finalinherited
textHeightBehavior TextHeightBehavior?
finalinherited
textLeadingDistribution TextLeadingDistribution?
finalinherited
textOverflow TextOverflow?
finalinherited
textSize double?
finalinherited
textSizeState ValueState<double>?
finalinherited
textSpans List<TextSpan>
finalinherited
textState ValueState<String>?
finalinherited
textStyle TextStyle?
finalinherited
textStyleState ValueState<TextStyle>?
finalinherited
textWidthBasis TextWidthBasis
finalinherited
transform Matrix4?
finalinherited
transformGravity Alignment?
finalinherited
visibility bool?
finalinherited
width double?
finalinherited
widthMax double?
finalinherited
widthMin double?
finalinherited
widthState ValueState<double>?
finalinherited
wordSpacing double?
finalinherited
wrapper bool?
finalinherited

Methods

attach(BuildContext context, T controller) Widget?
override
attachController(T controller) → T
override
build(BuildContext context, T controller, Widget parent) Widget
inherited
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<YMRView<T>>
Creates the mutable state for this widget at a given location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
initController() → T
override
initRootProperties() ViewRoots
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onChangeDependencies(BuildContext context, T controller) → void
inherited
onDispose(BuildContext context, T controller) → void
inherited
onInit(BuildContext context, T controller) → void
inherited
onReady(BuildContext context, T controller) → void
inherited
onToggleHandler(BuildContext context, T controller) → void
inherited
onUpdateWidget(BuildContext context, T controller, dynamic oldWidget) → void
inherited
onViewCreated(BuildContext context, T controller) → void
inherited
root(BuildContext context, T controller, Widget parent) Widget
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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