Result constructor

const Result({
  1. required bool error,
  2. required int code,
  3. String? errorMessage,
  4. int? errorNum,
})

Implementation

const Result({
  required this.error,
  required this.code,
  this.errorMessage,
  this.errorNum,
});