UDocAnnotationController constructor

UDocAnnotationController({
  1. String? storageKey,
  2. void onChanged(
    1. UDocAnnotationController controller
    )?,
  3. String? initialData,
  4. int maxUndo = 60,
  5. Color? color,
  6. String author = "",
})

Implementation

UDocAnnotationController({this._storageKey, this.onChanged, String? initialData, this.maxUndo = 60, Color? color, this.author = ""}) : _color = color ?? UDocPalette.colors.first {
  if (initialData != null && initialData.isNotEmpty) import(initialData, notify: false);
}