TBLClassicUnit constructor

TBLClassicUnit(
  1. String _publisherId,
  2. String _mode,
  3. String _placement,
  4. String _pageUrl,
  5. String _pageType,
  6. String _pageId,
  7. String _targetType,
  8. bool _isFeed,
  9. TBLClassicListener _tblClassicListener,
  10. TBLTrackingManager _tblTrackingManager,
  11. TBLEventsManager _tblEventsManager, {
  12. Key? key,
  13. int? viewId,
  14. ScrollController? scrollController,
  15. bool? keepAlive,
  16. Future<bool>? isWarmedUpWebview,
})

Implementation

TBLClassicUnit(
  this._publisherId,
  this._mode,
  this._placement,
  this._pageUrl,
  this._pageType,
  this._pageId,
  this._targetType,
  this._isFeed,
  this._tblClassicListener,
  this._tblTrackingManager,
  this._tblEventsManager, {
  Key? key,
  int? viewId,
  ScrollController? scrollController,
  bool? keepAlive,
  Future<bool>? isWarmedUpWebview,
})  : this.scrollController = scrollController ??= ScrollController(),
      this._viewId = viewId ?? TBLWebviewUtils.generateViewId(),
      this.uniqueUnitId = UniqueKey().toString() {
  PlatformWebViewControllerCreationParams platformWebViewControllerCreationParams =
      TBLWebviewUtils.createPlatformWebViewControllerCreationParams();

  _initialize(platformWebViewControllerCreationParams, isWarmedUpWebview);
}