PrettyQrTheme class
Defines default property values for descendant PrettyQrView widgets.
The PrettyQrDecoration.applyDefaults
method is used to combine a QR code
theme with an PrettyQrDecoration object.
- Inheritance
-
- Object
- ThemeExtension<
PrettyQrTheme> - PrettyQrTheme
- Mixed in types
- Annotations
-
- @sealed
- @immutable
Constructors
- PrettyQrTheme({required PrettyQrDecoration decoration})
-
Creates a QR code theme data.
const
- PrettyQrTheme.fallback()
-
A const-constructable QR code theme that provides default decoration.
const
- PrettyQrTheme.of(BuildContext context)
-
The closest instance of PrettyQrTheme that encloses the given context.
factory
Properties
- decoration → PrettyQrDecoration
-
An immutable description of how to paint a QR image.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → Object
-
The extension's type.
no setterinherited
Methods
-
copyWith(
{PrettyQrDecoration? decoration}) → PrettyQrTheme -
Creates a copy of this theme with the given fields replaced by the
non-null parameter values.
override
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
lerp(
covariant ThemeExtension< PrettyQrTheme> ? other, double t) → ThemeExtension<PrettyQrTheme> -
Linearly interpolate with another
PrettyQrTheme
object.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
Constants
- kDefaultDecoration → const PrettyQrDecoration
- The default QR code decoration.