ObjectModelBuilder<TObject> constructor

const ObjectModelBuilder<TObject>({
  1. required ObjectModel<TObject> objectModel,
  2. required Widget builder(
    1. BuildContext context,
    2. ObjectModel<TObject> objectModel,
    3. ObjectChangedEvent<TObject>? previousEvent,
    4. ObjectChangedEvent<TObject>? event,
    ),
  3. void listener(
    1. ObjectChangedEvent<TObject>? previous,
    2. ObjectChangedEvent<TObject>? current
    )?,
  4. bool buildWhen(
    1. ObjectModel<TObject> objectModel,
    2. ObjectChangedEvent<TObject>? previous,
    3. ObjectChangedEvent<TObject>? current
    )?,
})

Implementation

const ObjectModelBuilder({
  required ObjectModel<TObject> objectModel,
  required Widget Function(
          BuildContext context,
          ObjectModel<TObject> objectModel,
          ObjectChangedEvent<TObject>? previousEvent,
          ObjectChangedEvent<TObject>? event)
      builder,
  void Function(ObjectChangedEvent<TObject>? previous,
          ObjectChangedEvent<TObject>? current)?
      listener,
  bool Function(
          ObjectModel<TObject> objectModel,
          ObjectChangedEvent<TObject>? previous,
          ObjectChangedEvent<TObject>? current)?
      buildWhen,
}) : super(
          builder: builder,
          model: objectModel,
          buildWhen: buildWhen,
          listener: listener);