copy method

GenericGlyph copy()

Deep copy of a glyph and its outlines

Implementation

GenericGlyph copy() {
  final outlines = this.outlines.map((e) => e.copy()).toList();
  return GenericGlyph(outlines, bounds, metadata.copy());
}