getUsersByRole method

Future<List<User>> getUsersByRole(
  1. String userRole
)

Get all user by role.

Implementation

Future<List<User>> getUsersByRole(String userRole) =>
    _apiClient.getUserbyRole(userRole).catchError((error) {
      _crashlytics?.recordError(error, StackTrace.current);
      throw error;
    });