ToolbarOptions constructor Null safety

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

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);