of static method

The closest instance of this class that encloses the given context.

If there is no enclosing GalleryFooterTheme widget, then StreamChatThemeData.galleryFooterTheme is used.

Typical usage is as follows:

ImageFooterTheme theme = ImageFooterTheme.of(context);

Implementation

static GalleryFooterThemeData of(BuildContext context) {
  final imageFooterTheme =
      context.dependOnInheritedWidgetOfExactType<GalleryFooterTheme>();
  return imageFooterTheme?.data ??
      StreamChatTheme.of(context).galleryFooterTheme;
}