MethodChannelAmwalEcr constructor

MethodChannelAmwalEcr({
  1. MethodChannel? channel,
})

channel is for tests, which pass one carrying a mock handler. Leave it unset in production so the plugin binds to kEcrMethodChannel.

Implementation

MethodChannelAmwalEcr({MethodChannel? channel})
    : channel = channel ?? const MethodChannel(kEcrMethodChannel);