create static method
- @Deprecated("This method is deprecated and will be removed in the future")
- String message,
- SyncErrorCategory category,
- int code, {
- 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);
}