TF-1098 Apply lints for all module

This commit is contained in:
dab246
2022-10-21 13:31:33 +07:00
committed by Dat H. Pham
parent c6e73d4272
commit ae89802845
58 changed files with 442 additions and 348 deletions
@@ -1,6 +1,6 @@
extension CapitalizeExtension on String {
String get inCaps => this.length > 0 ?'${this[0].toUpperCase()}${this.toLowerCase().substring(1)}':'';
String get allInCaps => this.toUpperCase();
String get capitalizeFirstEach => this.replaceAll(RegExp(' +'), ' ').split(" ").map((str) => str.inCaps).join(" ");
String get inCaps => length > 0 ?'${this[0].toUpperCase()}${toLowerCase().substring(1)}':'';
String get allInCaps => toUpperCase();
String get capitalizeFirstEach => replaceAll(RegExp(' +'), ' ').split(" ").map((str) => str.inCaps).join(" ");
}
@@ -22,7 +22,7 @@ extension HtmlExtension on String {
String addBlockQuoteTag() => addBlockTag(
'blockquote',
attribute: 'style=\"margin-left:8px;margin-right:8px;padding-left:12px;padding-right:12px;border-left:5px solid #eee;\"');
attribute: 'style="margin-left:8px;margin-right:8px;padding-left:12px;padding-right:12px;border-left:5px solid #eee;"');
String asSignatureHtml() => '--<br><br>$this';
@@ -2,7 +2,7 @@ import 'package:built_collection/built_collection.dart';
import 'package:dartz/dartz.dart';
extension ListExtensions<T> on List<T> {
Tuple2<List<T>, List<T>> split(bool test(T element)) {
Tuple2<List<T>, List<T>> split(bool Function(T element) test) {
final validBuilder = ListBuilder<T>();
final invalidBuilder = ListBuilder<T>();
forEach((element) {
@@ -1,8 +1,8 @@
import 'package:flutter/foundation.dart';
extension URLExtension on String {
static final String prefixUrlHttps = 'https://';
static final String prefixUrlHttp = 'http://';
static const String prefixUrlHttps = 'https://';
static const String prefixUrlHttp = 'http://';
String formatURLValid() {
if (isNotEmpty) {