Is there a way to dispose a MethodChannel / EventChannel when there is no need for it?
I am asking because i want to create multiple method/event channels for objects.
Example:
class Call {
... fields ...
MethodChannel channel;
Future<void> answer() {
return channel.invokeMethod('@answer')
}
}
For each Call object i want it to have its own channel, so i can send messages to the native part without having 1 method channel that handles all the logic of the calls.
Is it recommended to use 1 channel?
Thanks.