GetnetContentprint constructor

GetnetContentprint({
  1. required GetnetPrintType type,
  2. String? content,
  3. GetnetPrintAlign? align,
  4. GetnetPrintSize? size = GetnetPrintSize.medium,
  5. String? imagePath,
  6. 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");