getValue method Null safety

T? getValue(
  1. BuildContext context,
  2. List<Condition> conditions


T? getValue(BuildContext context, List<Condition> conditions) {
  // Find the active condition.
  Condition? activeCondition = getActiveCondition(context, conditions);
  if (activeCondition == null) return null;
  // Return landscape value if orientation is landscape and landscape override value is provided.
  if (ResponsiveWrapper.of(context).orientation == Orientation.landscape &&
      activeCondition.landscapeValue != null)
    return activeCondition.landscapeValue;
  // Return active condition value or default value if null.
  return activeCondition.value;