BrushOption constructor

const BrushOption({
  1. bool showBackground = true,
  2. bool translatable = false,
  3. List<BrushColor> colors = const [BrushColor(color: Colors.black, background: Colors.white), BrushColor(color: Colors.white), BrushColor(color: Colors.blue), BrushColor(color: Colors.green), BrushColor(color: Colors.pink), BrushColor(color: Colors.purple), BrushColor(color: Colors.brown), BrushColor(color: Colors.indigo)],
})

Implementation

const BrushOption({
  this.showBackground = true,
  this.translatable = false,
  this.colors = const [
    BrushColor(color: Colors.black, background: Colors.white),
    BrushColor(color: Colors.white),
    BrushColor(color: Colors.blue),
    BrushColor(color: Colors.green),
    BrushColor(color: Colors.pink),
    BrushColor(color: Colors.purple),
    BrushColor(color: Colors.brown),
    BrushColor(color: Colors.indigo),
  ],
});