PlatformException constructor

PlatformException({@required String code, String message, dynamic details })

Creates a PlatformException with the specified error code and optional message, and with the optional error details which must be a valid value for the MethodCodec involved in the interaction.

Implementation

PlatformException({
  @required this.code,
  this.message,
  this.details,
}) : assert(code != null);