Skip to content

Commit 1a45f4b

Browse files
committed
chore: fix analysis issues
1 parent 558fb4a commit 1a45f4b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

slack_cli/lib/src/slack/block.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore: one_member_abstracts
12
abstract class Block {
23
Map<String, dynamic> toJson();
34
}
@@ -57,7 +58,7 @@ class HeaderBlock extends Block {
5758
@override
5859
Map<String, dynamic> toJson() => {
5960
'type': 'header',
60-
'text': {'type': 'plain_text', 'text': text}
61+
'text': {'type': 'plain_text', 'text': text},
6162
};
6263
}
6364

@@ -163,15 +164,15 @@ class SectionBlock extends Block {
163164
/// A `video` block is designed to embed videos in all app surfaces (e.g. link unfurls, messages, modals, App Home) - anywhere you can put blocks.
164165
class VideoBlock extends Block {
165166
VideoBlock({
167+
required this.title,
168+
required this.thumbnailUrl,
169+
required this.videoUrl,
166170
this.altText,
167171
this.authorName,
168172
this.description,
169173
this.providerIconUrl,
170174
this.providerName,
171-
required this.title,
172175
this.titleUrl,
173-
required this.thumbnailUrl,
174-
required this.videoUrl,
175176
});
176177

177178
/// A tooltip for the video.

0 commit comments

Comments
 (0)