toHSL method

  1. @defineMethodSkip
HSLType toHSL(
  1. Node color
)

Convert color to HSL or throw error

Implementation

@defineMethodSkip
HSLType toHSL(Node color) => (color is Color)
    ? color.toHSL()
    : throw LessError(message: 'Argument cannot be evaluated to a color');