Badge class

Constructors

Badge({required String label, String? message, int? labelWidth, int? messageWidth, BadgeTheme? theme})
Badge.blue({required String label, String? message, int? labelWidth, int? messageWidth})
Badge.cyan({required String label, String? message, int? labelWidth, int? messageWidth})
Badge.failed({required String label, String? message, int? labelWidth, int? messageWidth})
Badge.green({required String label, String? message, int? labelWidth, int? messageWidth})
Badge.info({required String label, String? message, int? labelWidth, int? messageWidth})
Badge.magenta({required String label, String? message, int? labelWidth, int? messageWidth})
Badge.red({required String label, String? message, int? labelWidth, int? messageWidth})
Badge.success({required String label, String? message, int? labelWidth, int? messageWidth})
Badge.warning({required String label, String? message, int? labelWidth, int? messageWidth})
Badge.yellow({required String label, String? message, int? labelWidth, int? messageWidth})

Properties

hashCode int
The hash code for this object.
no setterinherited
label String
final
labelWidth int?
final
message String?
final
messageWidth int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
theme BadgeTheme
final

Methods

blue() Badge
copyWith({String? label, String? message, int? labelWidth, int? messageWidth, BadgeTheme? theme}) Badge
cyan() Badge
failed() Badge
green() Badge
info() Badge
magenta() Badge
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
red() Badge
success() Badge
swapped() → dynamic
toString() String
A string representation of this object.
override
warning() Badge
yellow() Badge

Operators

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

Static Methods

inline(List<Badge> badges, {String separator = ' ', int separation = 2}) → dynamic