Acai constructor

Acai(
  1. Configuration configuration, [
  2. MethodChannel? methodChannel
])

Returns an Acai instance

final acai = Acai(Configuration(apiKey: 'apiKey'));
// If care about init complete
await acai.isBuilt;

Implementation

Acai(this.configuration, [MethodChannel? methodChannel]) {
  _channel = methodChannel ?? _channel;
  isBuilt = _init();
}