IspIdentifyService class

Matches the device ISP against Apple / Google patterns from remote extra_config.

Optional extra_config (List, Map, or JSON string under versions.extra_config):

[
  {
    "enabled": true,
    "apple": ["*Apple*", "*iCloud*"],
    "google": ["*Google*", "*Google LLC*"]
  }
]

A bare Map is also accepted. Missing keys fall back to defaultEnabled / defaultApplePatterns / defaultGooglePatterns. Patterns support * wildcards (case-insensitive).

Constructors

IspIdentifyService()

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

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

Static Properties

currentIsp String?
getter/setter pair
extraConfig Map<String, dynamic>?
getter/setter pair
isApple bool
no setter
isAppleOrGoogle bool
no setter
isEnabled bool
no setter
isGoogle bool
no setter
overrideIsApple bool?
When non-null, skips config/ISP matching (tests / local force).
getter/setter pair
overrideIsGoogle bool?
getter/setter pair

Static Methods

matchesProvider(String key) bool
Generic match against any list key in extraConfig (e.g. custom ISPs).
matchesWildcard(String value, String pattern) bool
* → any chars; case-insensitive. Exposed for tests.
setExtraConfig(dynamic raw) → void
Accepts a List [{...}], Map, or JSON string from remote config. For a List, the first Map entry is used.