Flutter: List all users

Get a list of users.

Parameters

Examples

Get a page of users

// Returns the first 50 users.
final List<User> users = await supabase.auth.admin.listUsers();

Paginated list of users

// Returns the 101th - 200th users.
final List<User> res = await supabase.auth.admin.listUsers(
  page: 2,
  perPage: 100,
);