ToolbarOptions constructor Null safety

const ToolbarOptions(
  1. {bool copy = false,
  2. bool cut = false,
  3. bool paste = false,
  4. bool selectAll = false}
)

Create a toolbar configuration with given options.

All options default to false if they are not explicitly set.

Implementation

const ToolbarOptions({
  this.copy = false,
  this.cut = false,
  this.paste = false,
  this.selectAll = false,
}) : assert(copy != null),
     assert(cut != null),
     assert(paste != null),
     assert(selectAll != null);