Skip to content

Commit

Permalink
Chore: removed _internal part from placeholder_builder file
Browse files Browse the repository at this point in the history
  • Loading branch information
CatHood0 committed Nov 28, 2024
1 parent d022960 commit ce51947
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// This file is only for internal use
@internal
library;

import 'package:flutter/material.dart';
import 'package:meta/meta.dart';
import '../../../../document/attribute.dart' show Attribute, AttributeScope;
Expand All @@ -7,8 +9,7 @@ import 'placeholder_configuration.dart';

/// This is the black list of the keys that cannot be
/// used or permitted by the builder
// ignore: unnecessary_late
late final List<String> _blackList = List.unmodifiable(<String>[
final List<String> _blackList = List.unmodifiable(<String>[
Attribute.align.key,
Attribute.direction.key,
Attribute.lineHeight.key,
Expand All @@ -18,7 +19,6 @@ late final List<String> _blackList = List.unmodifiable(<String>[
]);

@experimental
@internal
@immutable
class PlaceholderBuilder {
const PlaceholderBuilder({
Expand All @@ -34,7 +34,6 @@ class PlaceholderBuilder {

/// Check if this node need to show a placeholder
@experimental
@internal
(bool, String) shouldShowPlaceholder(Line node) {
if (builders.isEmpty) return (false, '');
var shouldShow = false;
Expand Down Expand Up @@ -63,7 +62,6 @@ class PlaceholderBuilder {
/// Before use this, we should always use [shouldShowPlaceholder] to avoid
/// show any placeholder where is not needed
@experimental
@internal
WidgetSpan? build({
required Attribute blockAttribute,
required TextStyle lineStyle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class PlaceholderConfig {
}
}

@immutable

/// Represents the text that will be displayed
@immutable
class PlaceholderTextBuilder {
const PlaceholderTextBuilder({
required this.placeholderText,
Expand Down

0 comments on commit ce51947

Please sign in to comment.