of static method
Implementation
static RCalendarMarker? of(BuildContext context, {bool nullOk = false}) {
final RCalendarMarker? inherited =
context.dependOnInheritedWidgetOfExactType<RCalendarMarker>();
assert(() {
if (nullOk) {
return true;
}
if (inherited == null) {
throw FlutterError(
'Unable to find a $RCalendarMarker widget in the context.\n'
'$RCalendarMarker.of() was called with a context that does not contain a '
'$RCalendarMarker widget.\n'
'No $RCalendarMarker ancestor could be found starting from the context that was '
'passed to $RCalendarMarker.of().\n'
'The context used was:\n'
' $context');
}
return true;
}());
return inherited;
}