extension_ksama 0.0.1 extension_ksama: ^0.0.1 copied to clipboard
A package that provides commonly used extensions to speed up development.
extension_ksama #
Collection of must have extensions on DateTime, String, BuildContext and many more.
Getting started #
Import
import 'package:extension/_ksamaextension_ksama.dart';
List of Extensions #
Currently we have following extensions getters, operators and methods.
Extensions on DateTime:
- DateTime get onlyDate
- DateTime get removeMicros
- DateTime get removeMillis
- DateTime get removeSeconds
- DateTime get removeMinutes
- DateTime get nextDay
- DateTime get prevDay
- DateTime get nextYear
- DateTime get prevYear
- bool get isToday
- bool get isTomorrow
- bool get isYesterday
- bool get isWeekend
- bool get isWeekday
Extensions on String:
- String get capitalisation
- String get titleCase
- String get pascalCase
- String get camelCase
- String get toggleCase
- String get reverse
- List<String> get tokenise
- String get abbreviate
- int? toInt({int? base})
- double? toDouble()
- bool? toBool()
- bool get isBlanksOnly
- bool get isEmail
- bool get isISBN
- bool get isIPv4
- bool get isIPv6
- bool get isDecimal
- bool get isBinary
- bool get isOctal
- bool get isHexadecimal
- bool get isDouble
- bool get isBool
Extensions on BuildContext:
- ThemeData get theme
- ColorScheme get colorScheme
- TextTheme get textTheme