GitHubColour class
A class for getting GitHub language colour.
- Annotations
-
- @sealed
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
listedLanguage
→ Set<
String> -
Get a Set of
String
that contains all recorded langauages name.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
contains(
String language) → bool -
Check does the
language
existed. -
find(
String language, {LanguageUndefinedHandler? onUndefined}) → Color -
Find Color for the
language
(case sensitive). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toSwatch(
{bool includeDefault = false, String? overridePrimaryColour}) → ColorSwatch< String> - Export all recorded of GitHubColour data to ColorSwatch with String as index.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- defaultColour → Color
-
Color object of defaultColourHex.
no setter
Static Methods
-
getExistedInstance(
) → GitHubColour - Get constructed instance which called getInstance early.
-
getInstance(
{bool offlineLastResort = true}) → Future< GitHubColour> - Construct an instance of GitHubColour.
Constants
- defaultColourHex → const String
- A String of hex value when the language is undefined or null.