Text class
Provides data related to text.
Properties
- answer → String
-
Returns a random answer.
no setter
- color → String
-
Returns a random color name.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- level → String
-
Returns a word that indicates a level of something.
no setter
- locale → Locale
-
final
- quote → String
-
Returns a random quote.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seed → int?
-
final
- sentence → String
-
Returns a random sentence from the text.
no setter
- title → String
-
Returns a random title.
no setter
- word → String
-
Returns a random word.
no setter
Methods
-
alphabet(
{bool isLowerCase = false}) → List< String> - Returns an alphabet for locale.
-
emoji(
{EmojiCategory? category}) → String -
Returns a random emoji. If
categoryis not specified returns emoji from random category in EmojiCategory. -
hexColor(
{bool asSafe = false}) → String - Returns a random HEX color.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rgbColor(
{bool asSafe = false}) → ({int b, int g, int r}) - Returns a random RGB color.
-
text(
{int quantity = 5}) → String - Returns the text.
-
toString(
) → String -
A string representation of this object.
inherited
-
words(
{int quantity = 5}) → List< String> - Returns a list of random words.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited