Closed sabin26 closed 2 months ago
For a given squadron service:
@SquadronService(baseUrl: '/services/storage', wasm: true) class KeyValueService { KeyValueService({required this.path}); final String path; @SquadronMethod() Future<void> clear() async {} }
dart compile wasm key_value_service.web.g.dart -o key_value_service.web.g.dart.wasm
The parameter 'path' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'.
Try adding either an explicit non-'null' default value or the 'required' modifier. _$KeyValueServiceWorkerService({super.path}) : super();
Thanks for the report, fixed.
For a given squadron service:
Steps to Reproduce
dart compile wasm key_value_service.web.g.dart -o key_value_service.web.g.dart.wasm
Error
The parameter 'path' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'.
Solution
Try adding either an explicit non-'null' default value or the 'required' modifier. _$KeyValueServiceWorkerService({super.path}) : super();