AnybillResult<T>.success constructor

AnybillResult<T>.success(
  1. int code,
  2. {T? data}
)

Used when the result of the API has been successfully returned.

Implementation

factory AnybillResult.success(
  /// The HTTP status code as integer.
  int code, {
  /// The results' data. Can be null.
  T? data,
}) = Success<T>;