setMethodChannel method

void setMethodChannel(
  1. MethodChannel channel
)

Set a method channel for this sensor. NOTE: This method name should be unique name. In addition, the instance should initialize as static const.

static const MethodChannel _coreChannel = const MethodChannel('awareframework_core/method');

Implementation

void setMethodChannel(MethodChannel channel) {
  this._channel = channel;
}