defines.dart 881 B

1234567891011121314151617181920212223
  1. import 'dart:collection';
  2. import 'package:appflowy_backend/protobuf/flowy-database/database_entities.pb.dart';
  3. import 'package:appflowy_backend/protobuf/flowy-error/errors.pb.dart';
  4. import '../grid/presentation/widgets/filter/filter_info.dart';
  5. import 'field/field_controller.dart';
  6. import 'row/row_cache.dart';
  7. typedef OnFieldsChanged = void Function(UnmodifiableListView<FieldInfo>);
  8. typedef OnFiltersChanged = void Function(List<FilterInfo>);
  9. typedef OnDatabaseChanged = void Function(DatabasePB);
  10. typedef OnRowsCreated = void Function(List<String> ids);
  11. typedef OnRowsUpdated = void Function(List<String> ids);
  12. typedef OnRowsDeleted = void Function(List<String> ids);
  13. typedef OnRowsChanged = void Function(
  14. UnmodifiableListView<RowInfo> rows,
  15. UnmodifiableMapView<String, RowInfo> rowByRowId,
  16. RowsChangedReason reason,
  17. );
  18. typedef OnError = void Function(FlowyError);