CardStyle class
Styiling information for the cardfield.
- Annotations
-
- @freezed
Constructors
- CardStyle({int? borderWidth, @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? backgroundColor, @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? borderColor, int? borderRadius, @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? cursorColor, @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? textColor, int? fontSize, String? fontFamily, @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? textErrorColor, @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? placeholderColor})
-
factory
-
CardStyle.fromJson(Map<
String, dynamic> json) -
factory
Properties
- backgroundColor → Color?
-
no setterinherited
- borderColor → Color?
-
no setterinherited
- borderRadius → int?
-
Borderradius that can give the Cardfield rounded corners.
no setterinherited
- borderWidth → int?
-
Width for the border.
no setterinherited
-
copyWith
→ $CardStyleCopyWith<
CardStyle> -
no setterinherited
- cursorColor → Color?
-
no setterinherited
- fontFamily → String?
-
Font family
no setterinherited
- fontSize → int?
-
Font size.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- placeholderColor → Color?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textColor → Color?
-
no setterinherited
- textErrorColor → Color?
-
Color of the input in case incorrect data is entered.
no setterinherited
Methods
-
apply(
CardStyle? style) → CardStyle -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited