SmartApiEnvelope constructor

const SmartApiEnvelope({
  1. required bool success,
  2. String message = "",
  3. int? statusCode,
  4. dynamic data,
})

Creates an envelope directly. Most callers get one back from SmartApiEnvelope.defaultParse rather than constructing it by hand.

Implementation

const SmartApiEnvelope({
  required this.success,
  this.message = "",
  this.statusCode,
  this.data,
});