BatchItem constructor

BatchItem({
  1. required Rect source,
  2. required RSTransform transform,
  3. Color? color,
  4. bool flip = false,
})

Implementation

BatchItem({
  required this.source,
  required this.transform,
  Color? color,
  this.flip = false,
})  : paint = Paint()..color = color ?? const Color(0x00000000),
      destination = Offset.zero & source.size;