ButtonLabelType class sealed

Available extensions
Annotations
  • @freezed

Constructors

ButtonLabelType.labelAndIcon({required String label, required String iconAssetString, @Default.new(ButtonDirection.left) dynamic buttonDirection})
const
factory
ButtonLabelType.labelOnly({required String label})
const
factory

Properties

copyWith → $ButtonLabelTypeCopyWith<ButtonLabelType>
Create a copy of ButtonLabelType with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
label → String
no setterinherited
label → String

Available on ButtonLabelType, provided by the ButtonLabelTypeExtension extension

no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult labelOnly(LabelOnly value), required TResult labelAndIcon(LabelAndIcon value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? labelOnly(LabelOnly value)?, TResult? labelAndIcon(LabelAndIcon value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult labelOnly(LabelOnly value)?, TResult labelAndIcon(LabelAndIcon value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult labelOnly(String label)?, TResult labelAndIcon(String label, String iconAssetString, dynamic buttonDirection)?, 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 labelOnly(String label), required TResult labelAndIcon(String label, String iconAssetString, dynamic buttonDirection)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? labelOnly(String label)?, TResult? labelAndIcon(String label, String iconAssetString, dynamic buttonDirection)?}) → TResult?
inherited

Operators

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