WowConnectivity class
Quản lý trạng thái mạng (online/offline) toàn cục
- Theo dõi sự kiện thay đổi kết nối
- Kiểm tra kết nối Internet thật (qua DNS socket)
- Cập nhật tự động cho các controller dùng OnlineStatusMixin
- Mixed-in types
Constructors
- WowConnectivity()
-
factory
Properties
Methods
-
dispose(
) → void -
handelException(
dynamic e, {String? subTitle}) → dynamic -
inherited
-
hasInternetConnection(
) → Future< bool> - Kiểm tra thực sự có Internet không (ping DNS)
-
log(
dynamic e, {String? subTitle}) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
OnlineStatusMixin controller) → void - Đăng ký controller cần nhận trạng thái mạng
-
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
OnlineStatusMixin controller) → void -
Hủy đăng ký (gọi trong
onClose()của controller)
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited