currentPageDescription property

FutureOr<String?> get currentPageDescription

Implementation

FutureOr<String?> get currentPageDescription {
  if (_currentPage != null && _currentPage!.description != null) {
    FutureOr<String> func = _currentPage!.description!(_route!);
    if (func is Future<String>) {
      return func.then((value) => value);
    }
    return func;
  } else {
    return null;
  }
}