PosthogFlutterWeb class
A web implementation of the PosthogFlutterPlatform of the PosthogFlutter plugin.
- Inheritance
-
- Object
- PlatformInterface
- PosthogFlutterWeb
Constructors
- PosthogFlutterWeb()
- Constructs a PosthogFlutterWeb
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addExceptionStep(
String message, {Map< String, Object> ? properties}) → Future<void> -
alias(
{required String alias, Map< String, Object?> ? options}) → Future<void> -
capture(
{required String eventName, Map< String, Object> ? properties, Map<String, Object> ? userProperties, Map<String, Object> ? userPropertiesSetOnce, Map<String, Object?> ? options}) → Future<void> -
captureAi(
{required String eventName, Map< String, Object> ? properties, Map<String, Object> ? userProperties, Map<String, Object> ? userPropertiesSetOnce, Map<String, Object?> ? options}) → Future<String?> - posthog-js has no AI capture, so AI events are not sent on web.
-
captureException(
{required Object error, StackTrace? stackTrace, Map< String, Object> ? properties, Map<String, Object?> ? options}) → Future<void> -
captureFeatureInteraction(
{required String flag, String? flagVariant}) → Future< void> -
captureFeatureView(
{required String flag, String? flagVariant}) → Future< void> -
captureLog(
{required String body, PostHogLogSeverity level = PostHogLogSeverity.info, Map< String, Object> ? attributes, String? traceId, String? spanId, int? traceFlags}) → Future<void> -
capturePushNotificationOpened(
{String? title, String? subtitle, String? body, Map< String, Object?> ? payload, String? action}) → Future<void> -
close(
) → Future< void> -
debug(
bool enabled) → Future< void> -
flush(
) → Future< void> -
getAllFeatureFlags(
) → Future< List< PostHogFeatureFlagResult> ?> -
getDistinctId(
) → Future< String> -
getFeatureFlag(
{required String key, bool? sendFeatureFlagEvent}) → Future< Object?> -
getFeatureFlagResult(
{required String key, bool? sendFeatureFlagEvent}) → Future< PostHogFeatureFlagResult?> -
getSessionId(
) → Future< String?> -
group(
{required String groupType, required String groupKey, Map< String, Object> ? groupProperties, Map<String, Object?> ? options}) → Future<void> -
handleMethodCall(
MethodCall call) → Future -
identify(
{required String userId, Map< String, Object> ? userProperties, Map<String, Object> ? userPropertiesSetOnce, Map<String, Object?> ? options}) → Future<void> -
isFeatureEnabled(
String key, {bool? sendFeatureFlagEvent, bool? defaultValue}) → Future< bool> -
isOptOut(
) → Future< bool> -
isSessionReplayActive(
) → Future< bool> - Returns whether session replay is currently active.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openUrl(
String url) → Future< void> - Opens a URL using the platform's default browser
-
optIn(
) → Future< void> -
optOut(
) → Future< void> -
register(
String key, Object value) → Future< void> -
registerOptions(
Map< String, Object?> options) → Future<void> - Registers capture options sent with all following events. See Posthog.registerOptions.
-
registerPushNotificationToken(
String deviceToken, {String? appId}) → Future< void> -
reloadFeatureFlags(
) → Future< PostHogFeatureFlagsLoaded> -
reset(
) → Future< void> -
resetGroupPropertiesForFlags(
{String? groupType}) → Future< void> -
resetPersonPropertiesForFlags(
) → Future< void> -
screen(
{required String screenName, Map< String, Object> ? properties, Map<String, Object?> ? options}) → Future<void> -
setAppLanguage(
String? language) → Future< void> -
Sets or, with
null, clears the$app_languageevent property. Does nothing by default, because PosthogObserver calls it during navigation.inherited -
setCaptureNativeScreens(
bool enabled) → Future< void> -
Applies a runtime PostHogSessionReplayConfig.captureNativeScreens
change by starting or stopping the native occlusion detector.
inherited
-
setGroupPropertiesForFlags(
String groupType, Map< String, Object> groupProperties) → Future<void> -
setPersonProperties(
{Map< String, Object> ? userPropertiesToSet, Map<String, Object> ? userPropertiesToSetOnce, Map<String, Object?> ? options}) → Future<void> -
setPersonPropertiesForFlags(
Map< String, Object> userProperties) → Future<void> -
setup(
PostHogConfig config) → Future< void> -
showSurvey(
Map< String, dynamic> survey) → Future<void> -
startSessionRecording(
{bool resumeCurrent = true}) → Future< void> - Starts session recording.
-
stopSessionRecording(
) → Future< void> - Stops the current session recording if one is in progress.
-
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
String key) → Future< void> -
unregisterOptions(
String key) → Future< void> - Removes an option registered with registerOptions. See Posthog.unregisterOptions.
-
unregisterPushNotificationToken(
) → Future< void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
Registrar registrar) → void