LayoutController class
Controller responsible for parsing JSON receipt data and building the corresponding Flutter widget layout.
This controller handles the conversion of JSON-formatted receipt data into a list of widgets that can be rendered. It supports various receipt elements including text lines, columns, tables, headers, and footers.
Constructors
- LayoutController({required Uint8List? imageHeader, })
- Creates a LayoutController instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
Optional footer image to be displayed at the bottom of the receipt.
final
- imageHeader → Uint8List?
-
Optional header image to be displayed at the top of the receipt.
final
-
layoutReceipt
↔ List<
Widget> -
The list of widgets representing the complete receipt layout.
getter/setter pair
- 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
-
parse(
String jsonContent) → void - Parses JSON content and builds the receipt layout.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited