pop method Null safety

dynamic pop(
  1. {dynamic result}
)

Pop the current widget from the stack.

Implementation

pop({dynamic result}) {
  Navigator.of(context).pop(result);

  this.validator(
      rules: {"title": "required|email", "body": "required|string"},
      data: {});
}