dart null チェックでは nullable のまま
list.map((x) => if x != null)
whereType<T>() を使用する
list.whereType<String>()