Step 1: Create the package

To create a plugin package, use the --template=plugin
flag with flutter create.

Use the --org option to specify your organization,
using reverse domain name notation. This value is used
in various package and bundle identifiers in the
generated plugin code.

Use the -a option to specify the language for android
or the -i option to specify the language for ios.
Please choose one of the following:

flutter create

-org com.example

-template

=plugin

-platforms

=android,ios,linux,macos,windows

a kotlin hello

flutter create

-org com.example

-template

=plugin

-platforms

=android,ios,linux,macos,windows

a java hello

flutter create