CNButtonDataConfig class
Configuration options for CNButtonData.
This mirrors CNButtonConfig but is designed for data models rather than direct widget usage.
Constructors
- CNButtonDataConfig({double? width, CNButtonStyle style = CNButtonStyle.glass, EdgeInsets? padding, double? borderRadius, double? minHeight, double? imagePadding, CNImagePlacement? imagePlacement, String? glassEffectUnionId, String? glassEffectId, bool glassEffectInteractive = true})
-
Creates button data configuration.
const
Properties
- borderRadius → double?
-
Corner radius for the button.
final
- glassEffectId → String?
-
Glass effect ID for individual effect identification.
final
- glassEffectInteractive → bool
-
Whether the glass effect responds to touches.
final
- glassEffectUnionId → String?
-
Glass effect union ID for effect blending.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imagePadding → double?
-
Spacing between icon/image and label.
final
- imagePlacement → CNImagePlacement?
-
Position of the image relative to the label.
final
- minHeight → double?
-
Minimum height constraint.
final
- padding → EdgeInsets?
-
Internal padding.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → CNButtonStyle
-
Visual style of the button.
final
- width → double?
-
Fixed width for the button.
final
Methods
-
copyWith(
{double? width, CNButtonStyle? style, EdgeInsets? padding, double? borderRadius, double? minHeight, double? imagePadding, CNImagePlacement? imagePlacement, String? glassEffectUnionId, String? glassEffectId, bool? glassEffectInteractive}) → CNButtonDataConfig - Creates a copy with the given fields replaced.
-
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