of static method
The closest instance of this class that encloses the given context.
If there is no enclosing StreamGalleryFooterTheme widget, then StreamChatThemeData.galleryFooterTheme is used.
Typical usage is as follows:
ImageFooterTheme theme = ImageFooterTheme.of(context);
Implementation
static StreamGalleryFooterThemeData of(BuildContext context) {
final imageFooterTheme =
context.dependOnInheritedWidgetOfExactType<StreamGalleryFooterTheme>();
return imageFooterTheme?.data ??
StreamChatTheme.of(context).galleryFooterTheme;
}