modify method Null safety

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

Modifies a resource.

Implementation

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