ArgbInt8Color class
ARGB int 8 model of color.
Constructors
- ArgbInt8Color({ColorChannelPresentation channelPresentation = ColorChannelPresentation.hex, required int? channel0, required int channel1, required int channel2, required int channel3, int? index, String code = '', String defaultLanguage = 'en', String? name, Names? names, String group = ''})
-
const
- ArgbInt8Color.argb(int a, int r, int g, int b)
-
factory
Properties
- channel0 → int?
-
An alpha channel for most models.
finalinherited
- channel1 → int
-
finalinherited
- channel2 → int
-
finalinherited
- channel3 → int
-
finalinherited
- channel4 → int
-
finalinherited
-
channelDepths
→ List<
int> -
Bits per channels including channel0.
channel0 goes first.
finalinherited
- channelPresentation → ColorChannelPresentation
-
finalinherited
-
channelRanges
→ List<
(int, int)> -
Min and max values for channels.
finalinherited
- code → String
-
A color code.
finalinherited
- defaultLanguage → String
-
A default language for color name as Alpha2-code standard.
finalinherited
- group → String
-
Some palettes can have a group for color.
finalinherited
- hasAlpha → bool
-
!
true
for any channel0 values when channel0 is notnull
.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- hasIndex → bool
-
no setterinherited
- hasName → bool
-
no setterinherited
- index → int?
-
Some colors have an index.
finalinherited
- model → ColorModel
-
finalinherited
- name → String
-
no setterinherited
- names → Names
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
square
→ NumColor<
int> -
Channel multiplication:
channelN * channelN
.no setterinherited - summarize → int
-
Summarize channels:
channel0 + channel1 + ...
.no setterinherited
Methods
-
assertArgbModel(
) → void -
inherited
-
assertSameModel(
UniColor< int> b) → void -
inherited
-
compareTo(
UniColor< int> b) → int -
Compares this object to another object.
inherited
-
copyWith(
{List< int> ? channelDepths, List<(int, int)> ? channelRanges, ColorModel? model, ColorChannelPresentation? channelPresentation, int? channel0, int? channel1, int? channel2, int? channel3, int? channel4, int? index, String? code, String? defaultLanguage, String? name, Names? names, String? group}) → NumColor<int> -
inherited
-
equalChannel0(
UniColor< int> b, {int decimals = -1}) → bool -
true
when channel0s are equal.inherited -
equalChannel1(
UniColor< int> b, {int decimals = -1}) → bool -
true
when channel1s are equal.inherited -
equalChannel2(
UniColor< int> b, {int decimals = -1}) → bool -
true
when channel2s are equal.inherited -
equalChannel3(
UniColor< int> b, {int decimals = -1}) → bool -
true
when channel3s are equal.inherited -
equalChannel4(
UniColor< int> b, {int decimals = -1}) → bool -
true
when channel4s are equal.inherited -
equalChannels(
UniColor< int> b, {int decimals = -1}) → bool -
true
when all channels are equal.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sameModel(
UniColor< int> b) → bool -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator -(
UniColor< int> b) → NumColor<int> -
Subtract channels:
channelN - channelN
.inherited -
operator ==(
Object other) → bool -
The equality operator.
inherited