CreateOptions<T> constructor

const CreateOptions<T>({
  1. required T create(
    1. String text
    ),
  2. required Widget createBuilder(
    1. String text
    ),
  3. bool validator(
    1. T
    ) = _defaultValidator,
  4. void onDuplicate(
    1. T
    )?,
  5. bool pickCreated = false,
  6. bool allowDuplicates = false,
  7. void onCreated(
    1. T
    )?,
})

Implementation

const CreateOptions({
  required this.create,
  required this.createBuilder,
  this.validator = _defaultValidator,
  this.onDuplicate,
  this.pickCreated = false,
  this.allowDuplicates = false,
  this.onCreated,
});