FBadgeCustomStyle class final

A custom FBadge style.

Implemented types
Mixed-in types

Constructors

FBadgeCustomStyle({required Color backgroundColor, required Color borderColor, required FBadgeContentStyle content, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(100)), double borderWidth = 1})
Creates a FBadgeCustomStyle.
const
FBadgeCustomStyle.inherit({required FStyle style, required Color backgroundColor, required Color borderColor, required FBadgeContentStyle content})
Creates a FBadgeCustomStyle that inherits its properties from style.

Properties

backgroundColor Color
The background color.
final
borderColor Color
The border color.
final
borderRadius BorderRadius
The border radius. Defaults to BorderRadius.circular(100).
final
borderWidth double
The border width (thickness).
final
content FBadgeContentStyle
The badge content's style.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Color? backgroundColor, Color? borderColor, BorderRadius? borderRadius, double? borderWidth, FBadgeContentStyle? content}) FBadgeCustomStyle
Returns a copy of this FBadgeCustomStyle with the given properties replaced.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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