SourcepointCmp constructor

SourcepointCmp({
  1. required int accountId,
  2. required int propertyId,
  3. required String propertyName,
  4. required String pmId,
  5. void onConsentUIReady()?,
  6. void onConsentUIFinished()?,
  7. void onConsentReady({
    1. GDPRUserConsent consent,
    })?,
  8. void onError(
    1. String? errorMessage
    )?,
  9. void onAction(
    1. ActionType? actionType
    )?,
})

Implementation

SourcepointCmp({
  required this.accountId,
  required this.propertyId,
  required this.propertyName,
  required this.pmId,
  this.onConsentUIReady,
  this.onConsentUIFinished,
  this.onConsentReady,
  this.onError,
  this.onAction
}) {
  _channel.setMethodCallHandler(_handleEvent as Future<dynamic> Function(MethodCall)?);
}