TextLayerData constructor

TextLayerData({
  1. required String id,
  2. String text = '',
  3. Offset? position,
  4. Color color = Colors.white,
  5. double fontSize = 32.0,
  6. bool isSelected = false,
})

Implementation

TextLayerData({
  required this.id,
  this.text = '',
  Offset? position,
  this.color = Colors.white,
  this.fontSize = 32.0,
  this.isSelected = false,
}) : position = position ?? Offset.zero;