Last updated:
0 purchases
saropa dart utils
Saropa Dart Utils #
Boilerplate reduction tools ๐ and human readable extension methods ๐ค by Saropa ๐
Contents #
Useful Methods
Extensions
String Extensions
Deployment Guide For Developers
Useful methods and extensions #
String text = 'www.saropa.com';
print(text.removeStart('www.')); // Output: saropa.com
String text = 'https://www.saropa.com';
print(text.removeStart('www.')); // Output: https://www.saropa.com
String? text;
print(text.isNullOrEmpty); // Output: true
text = "";
print(text.isNullOrEmpty); // Output: true
text = "Hello";
print(text.isNullOrEmpty); // Output: false
String? text;
print(text.notNullOrEmpty); // Output: false
text = "";
print(text.notNullOrEmpty); // Output: false
text = "Hello";
print(text.notNullOrEmpty); // Output: true
String? text = "Saropa";
print(text.encloseInParentheses()); // Output: (Saropa)
text = "";
print(text.encloseInParentheses(wrapEmpty: true)); // Output: ()
text = null;
print(text.encloseInParentheses()); // Output: null
String? text = "Saropa";
print(text.wrapWith(before: "(", after: ")")); // Output: (Saropa)
print(text.wrapWith(before: "Prefix-")); // Output: Prefix-Saropa
print(text.wrapWith(after: "-Suffix")); // Output: Saropa-Suffix
String text = " Saropa has multiple spaces ";
print(text.removeConsecutiveSpaces()); // Output: "Saropa has multiple spaces"
print(text.removeConsecutiveSpaces(trim: false)); // Output: " Saropa has multiple spaces "
String text = " Saropa has multiple spaces ";
print(text.compressSpaces()); // Output: "Saropa has multiple spaces"
print(text.compressSpaces(trim: false)); // Output: " Saropa has multiple spaces "
copied to clipboard
Extensions #
String Extensions #
String text = 'www.saropa.com';
print(text.removeStart('www.')); // Output: saropa.com
String? text;
print(text.isNullOrEmpty); // Output: true
text = "";
print(text.isNullOrEmpty); // Output: true
text = "Hello";
print(text.isNullOrEmpty); // Output: false
String? text;
print(text.notNullOrEmpty); // Output: false
text = "";
print(text.notNullOrEmpty); // Output: false
text = "Hello";
print(text.notNullOrEmpty); // Output: true
String? text = "Saropa";
print(text.encloseInParentheses()); // Output: (Saropa)
text = "";
print(text.encloseInParentheses(wrapEmpty: true)); // Output: ()
text = null;
print(text.encloseInParentheses()); // Output: null
String? text = "Saropa";
print(text.wrapWith(before: "(", after: ")")); // Output: (Saropa)
print(text.wrapWith(before: "Prefix-")); // Output: Prefix-Saropa
print(text.wrapWith(after: "-Suffix")); // Output: Saropa-Suffix
String text = " Saropa has multiple spaces ";
print(text.removeConsecutiveSpaces()); // Output: "Saropa has multiple spaces"
print(text.removeConsecutiveSpaces(trim: false)); // Output: " Saropa has multiple spaces "
String text = " Saropa has multiple spaces ";
print(text.compressSpaces()); // Output: "Saropa has multiple spaces"
print(text.compressSpaces(trim: false)); // Output: " Saropa has multiple spaces "
copied to clipboard
Deployment Guide For Developers #
1.โ โ Update CHANGELOG.md
2.โ Format โ dart format .
(note the trailing period ".")
3.โ โ Test flutter testโ
4.โ โ Execute โ dart doc
5.โ โ Deploy โ flutter pub publish
๐ ๐ ๐ฅ ๐ข ๐จ ๐ ๐ค ๐ฏ ๐ก๏ธ ๐ ๐ โฑ๏ธ ๐ ๐ ๐ ๐ ๐ฒ ๐ผ
About Saropa #
Saropaยฎ๏ธ is a technology company established in 2010. We have a strong background in financial services, online security and secure web communications.
Our team has extensive experience in top-tier financial technology and we are passionate believers in personal risk management. We are engaged and excited about our vision for family security and this encourages our culture of innovation.
Saropa Contacts is a private, cloud-connected address book that links real people, companies, and emergency groups. It is primarily focused on your trusted emergency groups. Our mission is to reduce the impact of crises everywhere.
In an emergency, get real-time access to all the important people, companies, and services you need - even if you don't know them personally, or if they're not where you expect them to be.
Visit the Saropa Contacts project here: app.saropa.com
PRs, ideas and issues are always welcome! Email for any questions [email protected] or find us on Slack Saropa
๐ Saropa
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.