registerWith static method
void
registerWith()
Installs the implementation for the running app as the platform instance. Called by the plugin registrant of Windows and Linux apps.
Implementation
static void registerWith() {
final environment = Platform.environment;
PosthogFlutterPlatformInterface.instance = PosthogFlutterDesktop(
appDirectory: DesktopStorage.appDirectory,
appInfo: DesktopAppInfo.fromPlatform(),
timezone: DesktopTimeZone.read(environment),
);
}