FlexSchemeOnColors constructor

const FlexSchemeOnColors({
  1. required Color onPrimary,
  2. required Color onSecondary,
  3. required Color onSurface,
  4. required Color onBackground,
  5. required Color onError,
})

Default constructor. In most situations the factory FlexSchemeOnColors.from is the preferred way to create the onColors.

Implementation

const FlexSchemeOnColors({
  required this.onPrimary,
  required this.onSecondary,
  required this.onSurface,
  required this.onBackground,
  required this.onError,
});