Result.error constructor

Result.error(
  1. String message,
  2. int code
)

Implementation

factory Result.error(String message, int code) = ErrorResult;