Plausible class

Plausible class. Use the constructor to set the parameters.

Constructors

Plausible(String serverUrl, String domain, {String userAgent = "", String screenWidth = ""})
Constructor

Properties

domain String
getter/setter pair
enabled bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenWidth String
getter/setter pair
serverUrl String
The url of your plausible server e.g. https://plausible.io
getter/setter pair
userAgent String
getter/setter pair

Methods

event({String name = "pageview", String referrer = "", String page = "", Map<String, String> props = const {}}) Future<int>
Post event to plausible
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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