Skip to content

Commit 482975f

Browse files
committed
lint: fix formatting
1 parent de73d84 commit 482975f

File tree

4 files changed

+38
-28
lines changed

4 files changed

+38
-28
lines changed

example/lib/screens/custom/custom_screen.dart

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -345,12 +345,13 @@ class _CallActionButtons extends StatelessWidget {
345345
final Map<String, String> metadata;
346346
final String callId;
347347

348-
// ignore: unused_element
349-
const _CallActionButtons(
350-
{super.key,
351-
required this.callId,
352-
required this.data,
353-
required this.metadata});
348+
const _CallActionButtons({
349+
// ignore: unused_element
350+
super.key,
351+
required this.callId,
352+
required this.data,
353+
required this.metadata,
354+
});
354355

355356
@override
356357
Widget build(BuildContext context) {
@@ -388,12 +389,13 @@ class _CallDataEditor extends StatefulWidget {
388389
final ValueChanged<Map<String, String>> onMetadataChanged;
389390
final String callId;
390391

391-
// ignore: unused_element
392-
const _CallDataEditor(
393-
{super.key,
394-
required this.callId,
395-
required this.onDataChanged,
396-
required this.onMetadataChanged});
392+
const _CallDataEditor({
393+
// ignore: unused_element
394+
super.key,
395+
required this.callId,
396+
required this.onDataChanged,
397+
required this.onMetadataChanged,
398+
});
397399

398400
@override
399401
State<_CallDataEditor> createState() => _CallDataEditorState();

example/lib/widgets/data_grid.dart

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,16 @@ class _TextField extends StatefulWidget {
215215
final ValueChanged? onFocusChanged;
216216
final ValueChanged<String>? onBackspace;
217217

218-
// ignore: unused_element
219-
const _TextField(
220-
{super.key,
221-
this.onChanged,
222-
this.onSubmitted,
223-
required this.value,
224-
this.hintText,
225-
this.onFocusChanged,
226-
this.onBackspace});
218+
const _TextField({
219+
// ignore: unused_element
220+
super.key,
221+
this.onChanged,
222+
this.onSubmitted,
223+
required this.value,
224+
this.hintText,
225+
this.onFocusChanged,
226+
this.onBackspace,
227+
});
227228

228229
@override
229230
State<_TextField> createState() => _TextFieldState();

lib/src/models/ck_call.dart

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,26 @@ class CKCall {
109109
}
110110
final List<String> changes = [];
111111
if (uuid != call.uuid) changes.add('uuid: $uuid -> ${call.uuid}');
112-
if (localizedName != call.localizedName)
112+
if (localizedName != call.localizedName) {
113113
changes.add('localizedName: $localizedName -> ${call.localizedName}');
114-
if (dateStarted != call.dateStarted)
114+
}
115+
if (dateStarted != call.dateStarted) {
115116
changes.add('dateStarted: $dateStarted -> ${call.dateStarted}');
116-
if (dateUpdated != call.dateUpdated)
117+
}
118+
if (dateUpdated != call.dateUpdated) {
117119
changes.add('dateUpdated: $dateUpdated -> ${call.dateUpdated}');
118-
if (attributes != call.attributes)
120+
}
121+
if (attributes != call.attributes) {
119122
changes.add('attributes: $attributes -> ${call.attributes}');
120-
if (callType != call.callType)
123+
}
124+
if (callType != call.callType) {
121125
changes.add('callType: $callType -> ${call.callType}');
126+
}
122127
if (state != call.state) changes.add('state: $state -> ${call.state}');
123128
if (data != call.data) changes.add('data: $data -> ${call.data}');
124-
if (capabilities != call.capabilities)
129+
if (capabilities != call.capabilities) {
125130
changes.add('capabilities: $capabilities -> ${call.capabilities}');
131+
}
126132
return changes.join(',\n');
127133
}
128134

lib/web_callkit_web.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export './src/core/enums/enums.dart';
1313

1414
/// A web implementation of the WebCallkitPlatform of the WebCallkit plugin.
1515
class WebCallkitWeb extends MethodChannelWebCallkit {
16-
WebCallkitWeb({super.configuration}) : super(notificationManager: NotificationManagerImplWeb());
16+
WebCallkitWeb({super.configuration})
17+
: super(notificationManager: NotificationManagerImplWeb());
1718

1819
static void registerWith(Registrar registrar) {
1920
WebCallkitPlatform.instance = WebCallkitWeb();

0 commit comments

Comments
 (0)