updateSync method

void updateSync(
  1. T updater(
    1. T current
    )
)

Cập nhật đồng bộ bằng 1 hàm cập nhật

Implementation

void updateSync(T Function(T current) updater) {
  value = updater(_value);
}