StringExtension extension
Methods
-
toCamelCase()
→ String
-
to camel case of string example: "this is a boy".toCamelCase() => "tHiS Is a bOy".
-
toDate({required FormatDate format})
→ String
-
for convert into date with given format
-
toDouble()
→ double
-
to double
-
toEveryFirstCapital()
→ String
-
for every first letter of string will capital example: "this is a boy".toEveryFirstCapital() => "This Is A Boy".
-
toEverySingleLetter({required String joinWith})
→ String
-
for use every single letter of string and join with
joinWith
you pass example: "Rahul Gandhi".toEverySingleLetter(".") => "R.G".
-
toFirstCapital()
→ String
-
for only first letter of string will capital example: "this is a boy".toFirstCapital() => "This is a boy".
-
toInt()
→ int
-
to int
-
toSingleLetter()
→ String
-
for use single letter of string example: "Rahul".toSingleLetter() => "R".