generateShapes method

  1. @override
List<Shape> generateShapes(
  1. dynamic text, {
  2. double size = 100,
})
override

Implementation

@override
List<Shape> generateShapes(text, {double size = 100}) {
  List<Shape> shapes = [];
  var paths = createPaths(text, size, data);
  for (var p = 0, pl = paths.length; p < pl; p++) {
    // Array.prototype.push.apply( shapes, paths[ p ].toShapes() );
    shapes.addAll(paths[p].toShapes(false, false));
  }

  return shapes;
}