getErrorMessage function

  1. @override
String getErrorMessage(
  1. dynamic error
)

Implementation

@override
String getErrorMessage(dynamic error) {
  if (error is PlatformException && error.message != null) {
    return error.message!;
  }
  return error.toString();
}