android property
Namespace for analytics API available on Android only.
The value of this field is null
on non-Android platforms. If you are
writing cross-platform code, consider using null-aware operator when
accessing it.
Example:
FirebaseAnalytics analytics = FirebaseAnalytics();
analytics.android?.setSessionTimeoutDuration(true);
Implementation
final FirebaseAnalyticsAndroid? android =
defaultTargetPlatform == TargetPlatform.android && !kIsWeb
? FirebaseAnalyticsAndroid()
: null;