ente/lib/models/typedefs.dart

21 lines
791 B
Dart

import 'dart:async';
import "package:photos/models/location/location.dart";
import "package:photos/models/search/search_result.dart";
typedef BoolCallBack = bool Function();
typedef VoidCallbackParamStr = void Function(String);
typedef VoidCallbackParamInt = void Function(int);
typedef VoidCallbackParamDouble = Function(double);
typedef VoidCallbackParamBool = void Function(bool);
typedef VoidCallbackParamListDouble = void Function(List<double>);
typedef VoidCallbackParamLocation = void Function(Location);
typedef VoidCallbackParamSearchResutlsStream = void Function(
Stream<List<SearchResult>>,
);
typedef FutureVoidCallback = Future<void> Function();
typedef FutureOrVoidCallback = FutureOr<void> Function();
typedef FutureVoidCallbackParamStr = Future<void> Function(String);