show method Null safety

void show(
  1. LcdContents newContents
)

Implementation

void show(LcdContents newContents) {
  if (_lastShown.value._myTimer != newContents._myTimer) {
    if (ignoreUpdates) {
      return;
    }
    _lastShown.value._myTimer?.cancel();
  }
  _lastShown.value = newContents;
}