SwiftOptions class
Options that control how Swift code will be generated.
Constructors
-
SwiftOptions({Iterable<
String> ? copyrightHeader, String? fileSpecificClassNameComponent, String? errorClassName, bool includeErrorClass = true}) -
Creates a SwiftOptions object
const
Properties
-
copyrightHeader
→ Iterable<
String> ? -
A copyright header that will get prepended to generated code.
final
- errorClassName → String?
-
The name of the error class used for passing custom error parameters.
final
- fileSpecificClassNameComponent → String?
-
A String to augment class names to avoid cross file collisions.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- includeErrorClass → bool
-
Whether to include the error class in generation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
merge(
SwiftOptions options) → SwiftOptions -
Overrides any non-null parameters from
options
into this to make a new SwiftOptions. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object> -
Converts a SwiftOptions to a Map representation where:
x = SwiftOptions.fromList(x.toMap())
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromList(
Map< String, Object> map) → SwiftOptions -
Creates a SwiftOptions from a Map representation where:
x = SwiftOptions.fromList(x.toMap())
.