PrettyQrDecoration class
An immutable description of how to paint a QR image.
- Mixed in types
- Annotations
Constructors
- PrettyQrDecoration({PrettyQrShape shape = kDefaultDecorationShape, Color? background, PrettyQrDecorationImage? image})
-
Creates a QR image decoration.
const
Properties
- background → Color?
-
The color or brush to fill in the background of the QR code.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- image → PrettyQrDecorationImage?
-
The image will be embed to the center of the QR code.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → PrettyQrShape
-
The QR modules shape.
final
Methods
-
copyWith(
{PrettyQrShape? shape, Color? background, PrettyQrDecorationImage? image}) → PrettyQrDecoration - Creates a copy of this PrettyQrDecoration but with the given fields replaced with the new values.
-
createPainter(
VoidCallback onChanged) → PrettyQrPainter -
Returns a
PrettyQrPainter
that will paint QR code with this decoration. -
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
lerp(
PrettyQrDecoration? a, PrettyQrDecoration? b, double t) → PrettyQrDecoration? - Linearly interpolates between two PrettyQrDecorations.
Constants
- kDefaultDecorationShape → const PrettyQrSmoothSymbol
- The default QR code shape.