index method Null safety

  1. @override
Future<List<Data>?> index(
  1. [Map<String, dynamic>? params]
)
override

Retrieves all resources.

Implementation

@override
Future<List<Data>?> index([Map<String, dynamic>? params]) async {
  app.sendAction(WebSocketAction(
      eventName: '$path::$indexAction', params: params ?? {}));
  return null;
}