Skip to content

Commit f6ab15e

Browse files
committed
fix structure
1 parent ae4fa43 commit f6ab15e

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,24 @@ Includes over 30 useful string functions such as :
6868
import 'package:common_utilities/common_utilities.dart';
6969
7070
void main() {
71-
72-
String mainStr = 'If you want something you have never had you must do something you have never done';
71+
String yourStr = 'If you want something you have never had you must do something you have never done';
7372
74-
String result = mainStr.stringUtils().subStringBetween('want', 'never');
75-
// prints => 'something you have'
73+
String result = yourStr.stringUtils().subStringBetween('want', 'never');
74+
// print(result) => 'something you have'
7675
77-
List<String> result2 = mainStr.stringUtils().subStringsBetween('you', 'never');
78-
// prints => ['something you have' , 'must do something you have']
76+
List<String> result2 = yourStr.stringUtils().subStringsBetween('you', 'never');
77+
// print(result2) => ['something you have' , 'must do something you have']
7978
80-
81-
String result3 = mainStr.stringUtils().subStringAfter('something');
82-
// prints => 'you have never had you must do something you have never done'
79+
String result3 = yourStr.stringUtils().subStringAfter('something');
80+
// print(result3) => 'you have never had you must do something you have never done'
8381
8482
bool lastIndex = true; //This is optional & its false by default
85-
String result4 = mainStr.stringUtils().subStringAfter('something',lastIndex);
86-
// prints => 'you have never done'
87-
83+
String result4 = yourStr.stringUtils().subStringAfter('something', lastIndex);
84+
// print(result4) => 'you have never done'
85+
86+
String str = CommonUtils.getRandomString(10);
87+
// print(str) => 'btorklcvxw'
88+
8889
}
8990
```
9091

0 commit comments

Comments
 (0)