convertErrorToPlatformException method

PlatformException convertErrorToPlatformException(
  1. dynamic error
)

Implementation

PlatformException convertErrorToPlatformException(dynamic error) {
  return PlatformException(
    code: 'Exception',
    message: error.toString(),
  );
}