Option constructor

Option({
  1. String? text,
  2. VoidCallback? onPressed,
  3. dynamic result,
})

Supply the button's text, callback and dynamic result value.

Implementation

Option({this.text, this.onPressed, this.result})
    : assert(result != null, 'Must provide a option result!');