OKOption constructor

OKOption({
  1. VoidCallback? onPressed,
})

Implementation

OKOption({VoidCallback? onPressed})
    : super(
        text: 'OK',
        onPressed: () {
          if (onPressed != null) {
            onPressed();
          }
        },
        result: true,
      );