setPlatform method

void setPlatform(
  1. TargetPlatform? value, [
  2. bool notify = true
])

Implementation

void setPlatform(TargetPlatform? value, [bool notify = true]) {
  if (value == _platform) return;
  _platform = value;
  if (notify) notifyListeners();
}