getFromContext function

Implementation

NomoVerticalListTileThemeData getFromContext(
  BuildContext context,
  NomoVerticalListTile widget,
) {
  const globalColorTheme = NomoVerticalListTileColorData();
  const globalSizingTheme = NomoVerticalListTileSizingData();
  final globalConstants =
      NomoTheme.maybeOf(context)?.constants.verticalListTileTheme ??
          const NomoVerticalListTileConstants();
  final themeOverride = NomoVerticalListTileThemeOverride.maybeOf(context);
  final themeData = NomoVerticalListTileThemeData.from(
          globalColorTheme, globalSizingTheme, globalConstants)
      .copyWith(themeOverride);
  return NomoVerticalListTileThemeData(
    titleStyle: widget.titleStyle ?? themeData.titleStyle,
    subtitleStyle: widget.subtitleStyle ?? themeData.subtitleStyle,
    traillingStyle: widget.traillingStyle ?? themeData.traillingStyle,
  );
}