shareBaseURL property Null safety

String? shareBaseURL

The share base URL of videos.

Implementation

String? get shareBaseURL => _shareBaseURL;
void shareBaseURL=(String? shareBaseURL)

Implementation

set shareBaseURL(String? shareBaseURL) {
  final shareBaseURLChanged = _shareBaseURL != shareBaseURL;
  _shareBaseURL = shareBaseURL;
  if (shareBaseURLChanged) {
    FWEventBus.getInstance().fire(
      FWEvent(
        eventName: FWEventName.shareBaseURLUpdated,
      ),
    );
  }

  final nativeMethodName = FireworkSDKNativeMethodName.setShareBaseURL.name;
  FWMethodChannelUtil.getFirewokSDKChannel()
      .invokeListMethod(nativeMethodName, _shareBaseURL);
}