toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'textureID': textureID,
    'width': width,
    'height': height,
    'data0': data0?.buffer.asUint8List(),
    'data1': data1?.buffer.asUint8List(),
    'data2': data2?.buffer.asUint8List(),
    'stride0': stride0,
    'stride1': stride1,
    'stride2': stride2,
    'format': format,
    'rotationMode': rotationMode,
  };
}