innim_remote_error 0.4.3 copy "innim_remote_error: ^0.4.3" to clipboard
innim_remote_error: ^0.4.3 copied to clipboard

Remote error object and common codes for Innim projects. Using Dio.

example/main.dart

import 'package:innim_remote_error/innim_remote_error.dart';

void main() {
  const error = RemoteError(GlobalErrorCode.domain, GlobalErrorCode.notFound,
      localizedMessage: 'Sorry, not found!',
      description: 'Requested element is not found');

  // ignore: avoid_print
  print('Error: $error');
  // > Error: RemoteError{domain: Global, code: 1, localizedMessage: Sorry, not found!, description: Requested element is not found, data: null}
}
3
likes
140
pub points
38%
popularity

Publisher

verified publisherinnim.ru

Remote error object and common codes for Innim projects. Using Dio.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

async, dio, equatable, json_annotation

More

Packages that depend on innim_remote_error