Skip to content

Commit 073042a

Browse files
committed
compose [nfc]: Make isTopicVacuous private
This helper will become more relevant within the context of `ComposeTopicController`. Signed-off-by: Zixuan James Li <[email protected]>
1 parent dd47653 commit 073042a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/widgets/compose_box.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,12 @@ class ComposeTopicController extends ComposeController<TopicValidationError> {
165165
///
166166
/// The term "Vacuous" draws distinction from [String.isEmpty], in the sense
167167
/// that certain strings are not empty but also indicate the absence of a topic.
168-
bool get isTopicVacuous => textNormalized == kNoTopicTopic;
168+
bool get _isTopicVacuous => textNormalized == kNoTopicTopic;
169169

170170
@override
171171
List<TopicValidationError> _computeValidationErrors() {
172172
return [
173-
if (mandatory && isTopicVacuous)
173+
if (mandatory && _isTopicVacuous)
174174
TopicValidationError.mandatoryButEmpty,
175175

176176
if (

0 commit comments

Comments
 (0)