of static method
Implementation
static ChatCallKitState of(BuildContext context) {
ChatCallKitState? state;
state = context.findAncestorStateOfType<ChatCallKitState>();
assert(
state != null,
'You must have a ChatCallKit widget at the top of you widget tree',
);
return state!;
}