getRole method

Future<UserRole> getRole(
  1. int roleId
)

Get a role by id.

Implementation

Future<UserRole> getRole(int roleId) =>
    _apiClient.getRole(roleId).catchError((error) {
      _crashlytics?.recordError(error, StackTrace.current);
      throw error;
    });