WordPair class

Constructors

WordPair(String first, String second)
WordPair.random({TypeOfPair typeOfPair = TypeOfPair.randomPair, Random? random})
factory

Properties

asCamelCase String
Returns the word pair as a simple string, with second word capitalized.
latefinal
asLowerCase String
Returns the word pair as a simple string, in lower case.
latefinal
asPascalCase String
Returns the word pair as a simple string, with each word capitalized.
latefinal
asSnakeCase String
Returns the word pair as a simple string, separated by an underscore.
latefinal
asString String
Returns the word pair as a simple string.
latefinal
asUpperCase String
Returns the word pair as a simple string, in upper case.
latefinal
first String
The first part of the pair.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second String
The second part of the pair.
final

Methods

join([String separator = '']) String
Returns a string representation of the WordPair where the two parts are joined by separator.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toLowerCase() WordPair
Creates a new WordPair with both parts in lower case.
toString() String
A string representation of this object.
override

Operators

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