of static method
Retrieves the FlutterFolderViewTheme from the closest FolderViewTheme ancestor
If there is no FolderViewTheme ancestor, returns a default light theme.
Example:
final theme = FolderViewTheme.of(context);
final lineColor = theme.lineTheme.lineColor;
Implementation
static FlutterFolderViewTheme of(BuildContext context) {
final FolderViewTheme? theme =
context.dependOnInheritedWidgetOfExactType<FolderViewTheme>();
return theme?.data ?? FlutterFolderViewTheme.light();
}