Add nullability check on description [skip ci]

Omar Hatem committed Feb 14, 2023 at 15:17 UTC f77a9592b2c76e3fec32f034aee93479d4a5e62d
1 file changed +1 -1
lib/twitter/twitter_user.dart
+1 -1
@@ -17,7 +17,7 @@ class TwitterUser {
17 id: json['data']['id'] as String,
18 username: json['data']['username'] as String,
19 name: json['data']['name'] as String,
20 - description: json['data']['description'] as String,
20 + description: json['data']['description'] as String? ?? '',
21 tweets: json['includes'] != null
22 ? List.from(json['includes']['tweets'] as List)
23 .map((e) => Tweet.fromJson(e as Map<String, dynamic>))