Controller constructor

Controller({
  1. double strokeWidth = 4.0,
  2. Color color = Colors.red,
  3. PaintMode mode = PaintMode.freeStyle,
  4. String text = '',
  5. bool fill = false,
})

Implementation

Controller({
  double strokeWidth = 4.0,
  Color color = Colors.red,
  PaintMode mode = PaintMode.freeStyle,
  String text = '',
  bool fill = false,
}) {
  _strokeWidth = strokeWidth;
  _color = color;
  _mode = mode;
  _text = text;
  _fill = fill;
}