XButtonStyle class abstract

Available extensions
Annotations
  • @freezed

Constructors

XButtonStyle({@Default.new(Colors.lightBlue) Color background, @Default.new(Colors.white) Color foreground, @Default.new(Colors.white) Color borderColor, @Default.new(Colors.lightBlue) Color loadingColor, @Default.new(Color.fromRGBO(238, 238, 238, 1)) Color disableBackground, @Default.new(0.0) double borderWidth, @Default.new(true) bool isEnable, @Default.new(1.0) double elevation, @Default.new(12.0) double paddingHorizontal, @Default.new(8.0) double paddingVertical, @Default.new(14) double textSize, Widget? prefixIcon, Widget? suffixIcon, Widget? centerIcon, TextStyle? textStyle})
const
factory

Properties

background Color
no setterinherited
borderColor Color
no setterinherited
borderWidth double
no setterinherited
centerIcon Widget?
no setterinherited
copyWith → $XButtonStyleCopyWith<XButtonStyle>
Create a copy of XButtonStyle with the given fields replaced by the non-null parameter values.
no setterinherited
disableBackground Color
no setterinherited
elevation double
no setterinherited
foreground Color
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isEnable bool
no setterinherited
loadingColor Color
no setterinherited
paddingHorizontal double
no setterinherited
paddingVertical double
no setterinherited
prefixIcon Widget?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffixIcon Widget?
no setterinherited
textSize double
no setterinherited
textStyle TextStyle?
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_XButtonStyle value)) → TResult

Available on XButtonStyle, provided by the XButtonStylePatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_XButtonStyle value)?) → TResult?

Available on XButtonStyle, provided by the XButtonStylePatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_XButtonStyle value)?, {required TResult orElse()}) → TResult

Available on XButtonStyle, provided by the XButtonStylePatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(Color background, Color foreground, Color borderColor, Color loadingColor, Color disableBackground, double borderWidth, bool isEnable, double elevation, double paddingHorizontal, double paddingVertical, double textSize, Widget? prefixIcon, Widget? suffixIcon, Widget? centerIcon, TextStyle? textStyle)?, {required TResult orElse()}) → TResult

Available on XButtonStyle, provided by the XButtonStylePatterns extension

A variant of when that fallback to an orElse callback.
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?>(TResult $default(Color background, Color foreground, Color borderColor, Color loadingColor, Color disableBackground, double borderWidth, bool isEnable, double elevation, double paddingHorizontal, double paddingVertical, double textSize, Widget? prefixIcon, Widget? suffixIcon, Widget? centerIcon, TextStyle? textStyle)) → TResult

Available on XButtonStyle, provided by the XButtonStylePatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(Color background, Color foreground, Color borderColor, Color loadingColor, Color disableBackground, double borderWidth, bool isEnable, double elevation, double paddingHorizontal, double paddingVertical, double textSize, Widget? prefixIcon, Widget? suffixIcon, Widget? centerIcon, TextStyle? textStyle)?) → TResult?

Available on XButtonStyle, provided by the XButtonStylePatterns extension

A variant of when that fallback to returning null

Operators

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