pluginClass

HelloPlugin

Endorsed implementations

An app facing package can endorse a platform package by adding a
dependency on it, and including it as a default_package in the
platforms: map. If the hello plugin above endorsed hello_windows,
it would look as follows:

flutter

plugin

platforms

android

package

com.example.hello

pluginClass

HelloPlugin

ios

pluginClass

HelloPlugin

windows

default_package

hello_windows

dependencies

hello_windows

^1.0.0

Note that as shown here, an app-facing package can have
some platforms implemented within the package,
and others in endorsed federated implementations.

Step 1: Create the package