handleFailureAsText method

Text handleFailureAsText(
  1. dynamic _,
  2. Failure failure
)

Implementation

Text handleFailureAsText(_, Failure failure) => Text(
    "Error: ${failure.error!.message}",
    style: const TextStyle(color: Colors.red, backgroundColor: Colors.white));