File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments