Skip to content

Commit 9a3407e

Browse files
committed
style: format
1 parent 77cd852 commit 9a3407e

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

lib/entity_details/bloc/entity_details_event.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ class EntityDetailsLoadRequested extends EntityDetailsEvent {
1717
required this.adThemeStyle,
1818
required this.entityId,
1919
required this.contentType,
20-
}) : assert(
21-
entityId != null && contentType != null,
22-
'Both entityId and contentType must be provided.',
23-
);
20+
});
2421

2522
/// The unique ID of the entity to load.
2623
final String entityId;

lib/entity_details/view/entity_details_page.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ class _EntityDetailsViewState extends State<EntityDetailsView> {
200200
: state.entity is Source
201201
? (state.entity! as Source).description
202202
: state.entity is Country
203-
? (state.entity! as Country).name // Using name as description for country
203+
? (state.entity! as Country)
204+
.name // Using name as description for country
204205
: null;
205206

206207
final followButton = IconButton(
@@ -221,8 +222,8 @@ class _EntityDetailsViewState extends State<EntityDetailsView> {
221222
final entityIconUrl = (state.entity is Topic)
222223
? (state.entity! as Topic).iconUrl
223224
: (state.entity is Country)
224-
? (state.entity! as Country).flagUrl
225-
: null;
225+
? (state.entity! as Country).flagUrl
226+
: null;
226227

227228
final Widget appBarTitleWidget = Row(
228229
mainAxisSize: MainAxisSize.min,

0 commit comments

Comments
 (0)