Skip to content

Commit e67a478

Browse files
committed
NOMERGE wip remove unnecessary destination field from _ContentInputNoTypingNotifier
1 parent f163ffe commit e67a478

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/widgets/compose_box.dart

+3-6
Original file line numberDiff line numberDiff line change
@@ -411,45 +411,42 @@ abstract class _ContentInput extends StatefulWidget {
411411
// ignore: unused_element
412412
factory _ContentInput.noTypingNotifier({
413413
required Narrow narrow,
414-
required SendableNarrow destination,
415414
required ComposeBoxController controller,
416415
required String hintText,
417416
}) => _ContentInputNoTypingNotifier._(
418417
narrow: narrow,
419-
destination: destination,
420418
controller: controller,
421419
hintText: hintText,
422420
);
423421

424422
const _ContentInput._({
425423
required this.narrow,
426-
required this.destination,
427424
required this.controller,
428425
required this.hintText,
429426
});
430427

431428
final Narrow narrow;
432-
final SendableNarrow destination;
433429
final ComposeBoxController controller;
434430
final String hintText;
435431
}
436432

437433
class _ContentInputWithTypingNotifier extends _ContentInput {
438434
const _ContentInputWithTypingNotifier._({
439435
required super.narrow,
440-
required super.destination,
436+
required this.destination,
441437
required super.controller,
442438
required super.hintText,
443439
}) : super._();
444440

441+
final SendableNarrow destination;
442+
445443
@override
446444
State<_ContentInput> createState() => _ContentInputStateWithTypingNotifier();
447445
}
448446

449447
class _ContentInputNoTypingNotifier extends _ContentInput {
450448
const _ContentInputNoTypingNotifier._({
451449
required super.narrow,
452-
required super.destination,
453450
required super.controller,
454451
required super.hintText,
455452
}) : super._();

0 commit comments

Comments
 (0)