getArgb method

int getArgb(
  1. DynamicScheme scheme
)

Return a ARGB integer (i.e. a hex code). scheme Defines the conditions of the user interface, for example, whether or not it is dark mode or light mode, and what the desired contrast level is.

Implementation

/// [scheme] Defines the conditions of the user interface, for example,
/// whether or not it is dark mode or light mode, and what the desired
/// contrast level is.
int getArgb(DynamicScheme scheme) {
  return getHct(scheme).toInt();
}