create static method

Future<DXF> create(
  1. String filePath
)

Create a DXF object

Implementation

static Future<DXF> create(String filePath) async {
  var _dxf = DXF._init(filePath);
  int? code;
  _dxf._dxfSeed.forEach((dynamic value) async {
    if (code != null) {
      _dxf._groupCodes.add(GroupCode(code, value));
      code = null;
    } else {
      code = int.tryParse(value);
    }
  });
  await _dxf._parse();
  return _dxf;
}