Faker class

Faker class to generates fake data

Faker faker = Faker();
faker.word()
faker.sentence()

Constructors

Faker()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paragraph({int nSentence = 5, int nWords = 5}) String
Generates fake paragraph Example:
inherited
paragraphs({int nParagraph = 3, int nSentence = 5, int nWords = 10, bool asText = false}) → dynamic
Generates fake List of paragraphs.
inherited
randomElement(List list) → dynamic
Get random element from list.
sentence({int nWords = 10}) String
Generates fake sentence. Example:
inherited
sentences({int nSentence = 5, int nWords = 10}) List<String>
Generates fake List of sentences Example:
inherited
text([int nSentence = 10]) String
Generates fake long text. Example:
inherited
toString() String
A string representation of this object.
inherited
uuid() String
Generates uuid on current DateTime.
word() String
Generates fake word.
inherited
words({int nWords = 10}) List<String>
Generates fake lists words. Example:
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited