diff --git a/pkgs/native_doc_dartifier/lib/src/prompts.dart b/pkgs/native_doc_dartifier/lib/src/prompts.dart index 24fe23668..359c210bc 100644 --- a/pkgs/native_doc_dartifier/lib/src/prompts.dart +++ b/pkgs/native_doc_dartifier/lib/src/prompts.dart @@ -76,7 +76,8 @@ JNIgen handles various syntactic and semantic differences between Java/Kotlin an * Pass each interface method as a named closure argument within the `\$InterfaceName` factory constructor. * Example: `InterfaceName.implement(\$InterfaceName(method1: (param1) { /* ... */ }))` * **Reusable Implementations:** - * If the Java/Kotlin code defines a class that `implements` an interface, To translate it to Dart make this class to be 'final class with' \$InterfaceName, as JNIgen make a mixin class \$InterfaceName that handles this, Don't make it to implements InterfaceName only use the mixin class. + * If the Java/Kotlin code defines a class that `implements` an interface, To translate it to Dart make this class to be 'final class with', Don't make it to implements InterfaceName only use the mixin class. + * Example: `public class MyClass implements Comparable` becomes `final class MyClass with \$Comparable`. * **Asynchronous Listener Methods:** * For `void`-returning methods in implemented interfaces that should be non-blocking (listeners), explicitly set the `\$async` parameter to `true` when using the inline implementation (e.g., `run\$async: true`). * If using a reusable class (mixin), override the `\$async` getter to return `true` (e.g., `bool get run\$async => true;`).