FakePlanServices constructor

FakePlanServices({
  1. required DraftDocument document,
  2. ParametricCatalog? catalog,
  3. Set<Handle> frozen = const {},
  4. double scale = 1,
  5. bool objectSnap = true,
  6. KitNames names = KitNames.empty,
  7. Locale locale = const Locale('en'),
  8. String decimalSeparator = '.',
  9. Map<String, Object> settings = const {},
  10. AttachmentRegistry? attachments,
})

Implementation

FakePlanServices({
  required this.document,
  ParametricCatalog? catalog,
  Set<Handle> frozen = const {},
  double scale = 1,
  this.objectSnap = true,
  KitNames names = KitNames.empty,
  Locale locale = const Locale('en'),
  String decimalSeparator = '.',
  Map<String, Object> settings = const {},
  AttachmentRegistry? attachments,
})  : _catalog = catalog,
      _frozen = frozen,
      _settings = settings,
      attachments = attachments ?? const _NoAttachments(),
      index = SpatialIndex(document),
      camera = CameraController(ViewportTransform(
          worldToScreenMatrix: Transform2(scale, 0, 0, -scale, 0, 0))),
      words = KitNamesWords(names, () => locale,
          decimalSeparator: () => decimalSeparator);