handle method

dynamic handle(
  1. dynamic exception,
  2. BuildContext context
)

Implementation

handle(var exception, BuildContext context) {
  var message = this.errorMessage(exception)!;

  return Center(
      child: Padding(
    padding: EdgeInsets.only(top: SizeConfig().screenHeight * 0.15),
    child: Text(
      message,
      style: CustomTextStyles.fontR14primary,
      textAlign: TextAlign.center,
    ),
  ));
}