ResponseModel<T>.error constructor

ResponseModel<T>.error(
  1. String? message, {
  2. T? data,
})

Implementation

ResponseModel.error(this.message, {this.data}) : status = Status.error;