getPageName method

  1. @override
  2. @nonVirtual
Either<ValueListenable<String?>, String> getPageName(
  1. BuildContext context
)
override

Get name of the page.

The first value of the Either is used in case the page name is asynchronous. null value is for the loading state. The stream is updating when the name gets loaded.

Implementation

@override
@nonVirtual
Either<ValueListenable<String?>, String> getPageName(BuildContext context) {
  return Left(_pageNameNotifier);
}