GetnetContentprint constructor
GetnetContentprint({
- required GetnetPrintType type,
- String? content,
- GetnetPrintAlign? align,
- GetnetPrintSize? size = GetnetPrintSize.medium,
- String? imagePath,
- bool ignoreLineBreak = false,
Implementation
GetnetContentprint({required this.type, this.content, this.align, this.size = GetnetPrintSize.medium, this.imagePath, this.ignoreLineBreak = false})
: assert(
type != GetnetPrintType.text || (content is String && align is GetnetPrintAlign && size is GetnetPrintSize),
"content, align, and size must be defined when type is text",
),
assert(type != GetnetPrintType.image || imagePath is String, "imagePath cannot be null when type is image"),
assert(type != GetnetPrintType.line || content is String, "content cannot be null when type is line");