color method

bool color(
  1. String name,
  2. List arg
)

If the name of the function is in the _coloring map, call the function and return the result

Args: name (String): The name of the color function. arg (List): The arguments passed to the color function.

Returns: A boolean value.

Implementation

bool color(String name, List<dynamic> arg) {
  if (_coloring.containsKey(name)) {
    return _callColorFunction(name, arg);
  }

  return false;
}