decodePaintintStyle function

PaintingStyle decodePaintintStyle(
  1. String name
)

Implementation

PaintingStyle decodePaintintStyle(String name) {
  switch (name) {
    case 'stroke':
      return .stroke;
    case 'fill':
    default:
      return .fill;
  }
}