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

alias({required String alias}) Future<void>
capture({required String eventName, Map<String, Object>? properties, Map<String, Object>? userProperties, Map<String, Object>? userPropertiesSetOnce}) Future<void>
captureException({required Object error, StackTrace? stackTrace, Map<String, Object>? properties}) Future<void>
close() Future<void>
debug(bool enabled) Future<void>
disable() Future<void>
enable() Future<void>
flush() Future<void>
getDistinctId() Future<String>
getFeatureFlag({required String key}) Future<Object?>
getFeatureFlagPayload({required String key}) Future<Object?>
getFeatureFlagResult({required String key, bool sendEvent = true}) Future<PostHogFeatureFlagResult?>
getSessionId() Future<String?>
group({required String groupType, required String groupKey, Map<String, Object>? groupProperties}) Future<void>
handleMethodCall(MethodCall call) Future
identify({required String userId, Map<String, Object>? userProperties, Map<String, Object>? userPropertiesSetOnce}) Future<void>
isFeatureEnabled(String key) 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
register(String key, Object value) Future<void>
reloadFeatureFlags() Future<void>
reset() Future<void>
screen({required String screenName, Map<String, Object>? properties}) Future<void>
setPersonProperties({Map<String, Object>? userPropertiesToSet, Map<String, Object>? userPropertiesToSetOnce}) 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>

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

registerWith(Registrar registrar) → void