PluginSwiftClassTemp class

Template for generating the Swift class for the iOS plugin.

it implements the FlutterPlugin protocol and handles method calls. Uses the provided handlers to generate the necessary code for each permission handler.

Inheritance

Constructors

PluginSwiftClassTemp(List<SwiftHandlerSnippet> handlers, {String channelName = kDefaultChannelName})
Default constructor for PluginSwiftClassTemp.

Properties

channelName String
The method channel name to use.
final
handlers List<SwiftHandlerSnippet>
The list of permission handler snippets to include.
final
hashCode int
The hash code for this object.
no setterinherited
path String
The file path where the generated template will be saved.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generate() String
Generates the content of the template as a string.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited