MyoroButtonStyle class
Style model of MyoroButton.
- Implementers
- Available extensions
- Annotations
-
- @immutable
- @myoroModel
Constructors
- MyoroButtonStyle({Color? backgroundIdleColor, Color? backgroundHoverColor, Color? backgroundTapColor, Color? disabledBackgroundColor, Color? contentIdleColor, Color? contentHoverColor, Color? contentTapColor, double? borderWidth, BorderRadius? borderRadius, Color? borderIdleColor, Color? borderHoverColor, Color? borderTapColor})
-
const
- MyoroButtonStyle.fake()
Properties
- backgroundHoverColor → Color?
-
MyoroTapStatusEnum.hover's background Color.
final
- backgroundIdleColor → Color?
-
MyoroTapStatusEnum.idle's background Color.
final
- backgroundTapColor → Color?
-
MyoroTapStatusEnum.tap's background Color.
final
- borderHoverColor → Color?
-
MyoroTapStatusEnum.hover's border Color.
final
- borderIdleColor → Color?
-
MyoroTapStatusEnum.idle's border Color.
final
- borderRadius → BorderRadius?
-
Border radius.
final
- borderTapColor → Color?
-
MyoroTapStatusEnum.tap's border Color.
final
- borderWidth → double?
-
Border width.
final
- contentHoverColor → Color?
-
MyoroTapStatusEnum.hover's content Color.
final
- contentIdleColor → Color?
-
MyoroTapStatusEnum.idle's content Color.
final
- contentTapColor → Color?
-
MyoroTapStatusEnum.tap's content Color.
final
- disabledBackgroundColor → Color?
-
Disabled background Color.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- self → MyoroButtonStyle
-
no setterinherited
Methods
-
backgroundColorBuilder(
MyoroTapStatusEnum tapStatus) → Color? -
Available on T, provided by the MyoroButtonStyleExtension extension
Background Color builder. -
borderBuilder(
MyoroTapStatusEnum tapStatus) → BoxBorder? -
Available on T, provided by the MyoroButtonStyleExtension extension
BoxBorder builder. -
bordered(
BuildContext context) → T -
Available on T, provided by the MyoroButtonStyleExtension extension
Border adder. -
contentColorBuilder(
MyoroTapStatusEnum tapStatus) → Color? -
Available on T, provided by the MyoroButtonStyleExtension extension
Content Color builder. -
copyWith(
{Color? backgroundIdleColor, bool backgroundIdleColorProvided = true, Color? backgroundHoverColor, bool backgroundHoverColorProvided = true, Color? backgroundTapColor, bool backgroundTapColorProvided = true, Color? disabledBackgroundColor, bool disabledBackgroundColorProvided = true, Color? contentIdleColor, bool contentIdleColorProvided = true, Color? contentHoverColor, bool contentHoverColorProvided = true, Color? contentTapColor, bool contentTapColorProvided = true, double? borderWidth, bool borderWidthProvided = true, Color? borderIdleColor, bool borderIdleColorProvided = true, Color? borderHoverColor, bool borderHoverColorProvided = true, Color? borderTapColor, bool borderTapColorProvided = true, BorderRadius? borderRadius, bool borderRadiusProvided = true}) → MyoroButtonStyle -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
primary(
BuildContext context) → T -
Available on T, provided by the MyoroButtonStyleExtension extension
Use the primary theme variant. -
secondary(
BuildContext context) → T -
Available on T, provided by the MyoroButtonStyleExtension extension
Use the secondary theme variant. -
singleBackgroundColor(
Color? color) → T -
Available on T, provided by the MyoroButtonStyleExtension extension
Creates a style with a singular Color. -
singleContentColor(
Color? color) → T -
Available on T, provided by the MyoroButtonStyleExtension extension
Creates a style with a singular Color. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
lerp(
MyoroButtonStyle? a, MyoroButtonStyle? b, double t) → MyoroButtonStyle