Skip to content

Commit b0aeda0

Browse files
committed
dart: trim a string
Signed-off-by: Ayush Dubey <[email protected]>
1 parent ecd2449 commit b0aeda0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dart/trim.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
void main() {
2+
String message = " Hello ";
3+
print("***" + message.trimRight() + "***");
4+
print("***" + message.trimLeft() + "***");
5+
print("***" + message.trim() + "***");
6+
}

0 commit comments

Comments
 (0)