• Defines a widget plugin and returns the plugin object.

    Type Parameters

    Parameters

    • plugin: T

      The plugin object to be defined.

    Returns WidgetPlugin

    The defined plugin object.