Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Ngeo <[email protected]>
  • Loading branch information
kawaijoe and Pante authored Aug 17, 2024
1 parent e9ea3d1 commit 3cc6d5d
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions forui/lib/src/widgets/label.dart
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class _FVerticalLabel extends StatelessWidget {
}
}

/// The [FLabel]'s styles containing [FLabelStyle].
/// The [FLabel]'s styles.
final class FLabelStyles with Diagnosticable {
/// The horizontal label's style.
final FLabelStyle horizontal;
Expand Down Expand Up @@ -336,18 +336,6 @@ final class FLabelStyles with Diagnosticable {
);

/// Returns a copy of this [FLabelStyles] with the given properties replaced.
///
/// ```dart
/// final style = FLabelStyles(
/// horizontal: ...,
/// vertical: ...,
/// );
///
/// final copy = style.copyWith(vertical: ...);
///
/// print(style.horizontal == copy.horizontal); // true
/// print(style.vertical == copy.vertical); // false
/// ```
@useResult
FLabelStyles copyWith({
FLabelStyle? horizontal,
Expand Down Expand Up @@ -405,19 +393,6 @@ final class FLabelStyle with Diagnosticable {
});

/// Returns a copy of this [FLabelStyle] with the given properties replaced.
///
/// ```dart
/// final style = FLabelStyle(
/// formFieldStyle: ...,
/// labelPadding: ...,
/// ...
/// );
///
/// final copy = style.copyWith(labelPadding: ...);
///
/// print(style.formFieldStyle == copy.formFieldStyle); // true
/// print(style.labelPadding == copy.labelPadding); // false
/// ```
@useResult
FLabelStyle copyWith({
FFormFieldStyle? formFieldStyle,
Expand Down

0 comments on commit 3cc6d5d

Please sign in to comment.