color static method

Color? color(
  1. DataSource source,
  2. List<Object> key
)

Returns a Color from the specified integer.

Returns null if it's not an integer; otherwise, passes it to the Color constructor.

Implementation

static Color? color(DataSource source, List<Object> key) {
  final int? value = source.v<int>(key);
  if (value == null) {
    return null;
  }
  return Color(value);
}