create method Null safety

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

Creates a resource.

Implementation

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