By default, Pigeon creates an error class called FlutterError. However, if someone is consuming 2 libraries that both use Pigeon internally, this causes a class name clash on Kotlin (Type FlutterError is defined multiple times).
This can be resolved by passing in kotlinOptions: KotlinOptions(errorClassName: "YourCustomErrorClassName"), in PigeonOptions in messages.dart
By default, Pigeon creates an error class called
FlutterError
. However, if someone is consuming 2 libraries that both use Pigeon internally, this causes a class name clash on Kotlin (Type FlutterError is defined multiple times
).This can be resolved by passing in
kotlinOptions: KotlinOptions(errorClassName: "YourCustomErrorClassName"),
inPigeonOptions
inmessages.dart