content property
String
get
content
Build a page from html, CollectionStyle.all is defined CSS inside html
_data
will collect all generated tag from model ReceiptText,
ReceiptTextLeftRight and ReceiptLine
Implementation
String get content {
return styleAll!=''? styleAll: '''
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RECEIPT</title>
</head>
${ CollectionStyle.all}
<body>
<div class="receipt">
<div class="container">
<!-- testing part -->
$_data
</div>
</div>
</body>
</html>
''';
}