KotlinOptions class

Options that control how Kotlin code will be generated.

Constructors

KotlinOptions({String? package, Iterable<String>? copyrightHeader, String? errorClassName, bool includeErrorClass = true, String? fileSpecificClassNameComponent})
Creates a KotlinOptions 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
package String?
The package where the generated class will live.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

merge(KotlinOptions options) KotlinOptions
Overrides any non-null parameters from options into this to make a new KotlinOptions.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object>
Converts a KotlinOptions to a Map representation where: x = KotlinOptions.fromMap(x.toMap()).
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromMap(Map<String, Object> map) KotlinOptions
Creates a KotlinOptions from a Map representation where: x = KotlinOptions.fromMap(x.toMap()).