RtBaseHelper class
Helper class providing utility functions for base functionality.
RtBaseHelper is a singleton class that provides common helper methods
used across the rtbase package, particularly for connectivity validation
and network state management.
Features:
- Singleton pattern for global access
- Connectivity result validation against allowed connection types
- Support for multiple network types (WiFi, mobile, ethernet, VPN, etc.)
Access the singleton instance via instance:
final helper = RtBaseHelper.instance;
See also:
- RtBaseController which uses this helper for connectivity monitoring
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
-
checkIsConnected(
List< ConnectivityResult> connectivityResult, {List<ConnectivityResult> allowedConnectivityOption = const [ConnectivityResult.mobile, ConnectivityResult.wifi, ConnectivityResult.ethernet, ConnectivityResult.vpn]}) → bool - Checks if the current connectivity state represents a valid connection.
-
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
- instance → RtBaseHelper
-
Gets the singleton instance of RtBaseHelper.
no setter