BarcodeCard class final
A rounded plate under a barcode and its text: BarcodeStyle.card.
Lengths are fractions of the code's width without its quiet zone. The
quiet zone is the least padding the card gets, never added on top of it.
The area around the card stays transparent: in BarcodeView and in a
PNG.
- Annotations
Constructors
- BarcodeCard({Color? color, double radius = 0.12, double padding = 0.1, double elevation = 0})
-
Creates a card.
const
Properties
- color → Color?
-
The card's color;
nulluses BarcodeStyle.backgroundColor. Another color puts the code on its own background square, like a code printed on a colored card.final - elevation → double
-
A soft shadow under the card, as a fraction of the code's width
(0.04 is a gentle one); 0 for none. Exports grow by the shadow's reach.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- padding → double
-
Space between the card's edge and its content.
final
- radius → double
-
Corner radius.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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.
override