Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit dfce342

Browse files
rkjnshahan
authored andcommitted
Add documentation for [StyleFormatter].
PiperOrigin-RevId: 216912446
1 parent cd47c8c commit dfce342

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

angular_components/lib/model/formatters/formatter.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
/// Interface that defines how a type `T` should be formatted.
5+
/// Interface that defines how a type `T` should be formatted into a String.
66
abstract class Formatter<T> {
77
String format(T value, [String parameters]);
88
}
99

10+
/// Generates list of css classes based on cell value.
1011
abstract class StyleFormatter<T> implements Formatter<T> {
1112
/// Returns list of classes to style value.
1213
List<String> computeStyle(T value, [String parameters]) => const [];

0 commit comments

Comments
 (0)