defines.dart 915 B

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