build method

  1. @override
  2. @mustCallSuper
Widget build(
  1. BuildContext context
)
@mustCallSuper, override

Builds the presentaiton for the widget.

If this StatelessWidget isNavigatable, the NavigationService's context is set to this context.

Implementation

@override
@mustCallSuper
Widget build(BuildContext context) {
  if (_isNavigable) {
    Core.componentResolver
        .resolveType<MessageService>()
        .publish(Message(Constants.newBuildContext, context));
  }
  return null;
}