of static method
Implementation
static TimePickerProvider of(BuildContext ctx) {
final widget = ctx.dependOnInheritedWidgetOfExactType<TimePickerProvider>();
assert(widget != null, 'TimePickerProvider not found in the context');
return widget!;
}