setTitle method

dynamic setTitle(
  1. String? title, {
  2. dynamic notify = true,
  3. bool allowNull = false,
})

Implementation

setTitle(String? title, {notify = true, bool allowNull = false}) {
  if (!allowNull && title.e || title == _title) {
    return;
  }
  _title = title ?? "";
  if (notify) {
    notifyListeners();
  }
}