NetworkController class

A controller to manage network connectivity status and updates for an application.

The NetworkController class provides methods to listen to network connectivity changes, check the current internet connection status, and update the connection status with user notifications.

This class utilizes the connectivity_plus package to monitor network status changes and inform the user via toast messages about the type of connection or if there is no connection.

Constructors

NetworkController.new()

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

checkConnection() Future<bool>
Checks the current internet connection status.
initNetworkController() → void
Initializes the network controller to listen for connectivity changes.
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