RandomUser class

Client for the randomuser.me service - a free and easy to use service to generate random user data for application testing.

Use getUser for a randomly generated user. You may call getUsers to get a list of random users, or getUsersWithInfo to have additional Info structure with the response.

Code sample:

final api = RandomUser();
final user = api.getUser();
final users = api.getUsers();

Constructors

RandomUser()

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getUser({String seed String gender String password String nationalities }) → Future<User>
Returns a randomly generated user. [...]
getUsers({int results, int page, String seed String gender String password String nationalities }) → Future<List<User>>
Returns a list of randomly generated users. [...]
getUsersWithInfo({int results, int page, String seed String gender String password String nationalities }) → Future<RandomUserResponse>
Returns a list of randomly generated users with additional Info structure. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited