Error constructor

Error(
  1. {@required String type,
  2. @required String message}
)

Implementation

Error({
  @required this.type,
  @required this.message,
});