Option constructor

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

Implementation

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