To add a missing RPC method or update an outdated one, you must modify the abstract class in lib/src/rpc/client.dart.
Steps for adding a method:
- Add the method definition to the abstract class in
lib/src/rpc/client.dart using standard Dart syntax. - If the method requires new parameter or response types, define those classes in the
lib/src/rpc/dto/ directory. - Rebuild the package; the implementation for the new method will be automatically generated.
For deletions, simply remove the method from the abstract class.