getColor method

Color getColor(
  1. String name, {
  2. Color? defaults,
})

Implementation

Color getColor(String name, {Color? defaults}) {
  final result = getColorOrNull(name, defaults: defaults);
  if (result == null) {
    throw ParsingException(name, null, 'Missing required color field');
  }
  return result;
}