string static method

MorphIconData string(
  1. String svg, {
  2. bool fit = true,
  3. double grid = 24,
})

Parses SVG markup you already have as a string.

Cached by the markup itself, so this is safe to call from build().

Implementation

static MorphIconData string(
  String svg, {
  bool fit = true,
  double grid = 24,
}) => _parse(_key('str', svg, fit, grid), svg, fit, grid);