findBuilder static method

FailedResultBuilder findBuilder(
  1. BuildContext context
)

Search for default builder from ancesters of context. When no default builder can be found, globalBuilder will be returned

Implementation

static FailedResultBuilder findBuilder(BuildContext context) =>
    context
        .dependOnInheritedWidgetOfExactType<DefaultFailedResultBuilder>()
        ?.builder ??
    globalBuilder;