okAction method

Widget okAction(
  1. UpdatableContext updatableContext,
  2. String label, {
  3. Color? color,
})

Implementation

Widget okAction(UpdatableContext updatableContext, String label, {Color? color}) {
  return primaryAction(label, () {
    if (updatableContext.onValidate()) {
      updatableContext.popResult();
    }
  }, color: color);
}