QRGenerator class

Utility class for QR code generation

Constructors

QRGenerator.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
inherited

Static Methods

generateQRCode(String url) Future<String>
Generates QR code data for a given URL
generateQRCodeSVG(String url, {int size = 100, int version = 2}) Future<String>
Generates QR code as SVG string
generateSimpleQRCode(String data) String
Generates a simple ASCII QR code for terminal display
generateStyledQRCode(String url, {int size = 20, int foregroundColor = 0xFF000000, int backgroundColor = 0xFFFFFFFF}) Future<String>
Generates QR code with custom styling
getRecommendedVersion(int dataLength) int
Gets the recommended QR code version for given data length
isValidQRData(String data) bool
Validates if a string can be encoded as QR code
printQRCodeToTerminal(String data, {int size = 4}) → void
Prints a QR code for the given data to the terminal as ASCII size controls the QR version (1-10, default 4, smaller = smaller QR)