create static method

  1. @Deprecated("This method is deprecated and will be removed in the future")
SyncError create(
  1. String message,
  2. SyncErrorCategory category,
  3. int code, {
  4. bool isFatal = false,
})

Creates a specific type of SyncError instance based on the category and the code supplied.

Implementation

@Deprecated("This method is deprecated and will be removed in the future")
static SyncError create(String message, SyncErrorCategory category, int code, {bool isFatal = false}) {
  return SyncError._(message, SyncErrorCode.fromInt(code), null);
}