stubColor property

String get stubColor

Constructs a string stub for the color, if one is provided and non-null.

Implementation

String get stubColor => switch (color) {
  null => '',
  final String s => 'color=${quote(s)}',
};