FabricSimulation constructor
FabricSimulation({})
Implementation
FabricSimulation({
required this.width,
required this.height,
required this.cols,
required this.rows,
this.tearRatio = 3.2,
this.pinBreakRatio = 2.0,
}) : assert(cols >= 3 && rows >= 3),
assert(cols * rows <= 65535) {
_generateGrid();
}