materialColor method Null safety

dynamic materialColor(
  1. dynamic context
)

Implementation

MaterialColor materialColor(BuildContext context) => isDarkMode(context)
    ? Colors.grey
    : SmoothTheme.MATERIAL_COLORS[colorTag] ??
        SmoothTheme.MATERIAL_COLORS[SmoothTheme.COLOR_TAG_BLUE]!;