getEffectiveTheme method

  1. @protected
FilesystemPickerThemeBase getEffectiveTheme(
  1. BuildContext context
)

Implementation

@protected
FilesystemPickerThemeBase getEffectiveTheme(BuildContext context) {
  final brightness = getBrightness(context);

  final FilesystemPickerThemeBase effectiveTheme =
      (brightness == Brightness.light)
          ? (lightTheme ?? const FilesystemPickerTheme())
          : (darkTheme ?? const FilesystemPickerTheme());

  return effectiveTheme;
}