getOneOptional<T> method Null safety

  1. @override
T? getOneOptional<T>(
  1. dynamic locator
)
override

Gets an optional component reference that matches specified locator.

  • locator the locator to find references by. Returns a matching component reference or null if nothing was found.