of static method

Get the QuickRTCThemeData from the nearest ancestor QuickRTCTheme

Returns QuickRTCThemeData.dark if no theme is found in the tree.

Implementation

static QuickRTCThemeData of(BuildContext context) {
  final theme = context.dependOnInheritedWidgetOfExactType<QuickRTCTheme>();
  return theme?.data ?? QuickRTCThemeData.dark;
}