ServiceResult<T>.failure constructor

ServiceResult<T>.failure({
  1. required CardStatus status,
  2. required String message,
  3. int? sw1,
  4. int? sw2,
})

Constructor cho trường hợp thất bại.

Implementation

ServiceResult.failure({
  required this.status,
  required this.message,
  this.sw1,
  this.sw2,
}) : data = null;