getData abstract method
Retrieves a list of data items based on the given query.
\param query A function that modifies the query used to retrieve the data items.
\returns A Future that completes with a list of data items of type T.
Implementation
Future<List<T>> getData(Query Function(Query query)? query);