ActionResult<T>.success constructor

const ActionResult<T>.success({
  1. T? object,
})

Creates a new ActionResult instance with the state being ActionResultState.success.

Implementation

const ActionResult.success({
  T? object,
}) : this(
        state: ActionResultState.success,
        object: object,
      );