read method Null safety

  1. @override
Future<Data?> read(
  1. Id id,
  2. [Map<String, dynamic>? params]
)
override

Retrieves the desired resource.

Implementation

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