componentByName static method

WildnessBase? componentByName(
  1. BuildContext context,
  2. String name
)

Obtains a WildnessBase component matching name from the nearest WildnessProvider.

Implementation

static WildnessBase<dynamic>? componentByName(
  BuildContext context,
  String name,
) {
  return Wildness.of(context, listen: true).componentByName(name);
}