Option constructor
Option({
- Key? key,
- String? text,
- VoidCallback? onPressed,
- dynamic result,
Supply the button's text, callback and dynamic result value.
Implementation
Option({this.key, this.text, this.onPressed, this.result})
: assert(result != null, 'Must provide a option result!');