MorphGlassOutline constructor

const MorphGlassOutline(
  1. Path path
)

Creates an outline from its edge alone.

It carries no distance field, so the package's own renderer has nothing to shade it from: it draws such a body as a flat fill of path in its first surface's color on the liquid tier too, as the flat tier does. A custom MorphGlassPainter gets the path as given.

Implementation

const MorphGlassOutline(Path path)
  : _path = path,
    _field = null,
    _shapes = null,
    _cover = null,
    _merged = null;