Last updated:
0 purchases
extension ksama
extension_ksama #
Collection of must have extensions on DateTime, String, BuildContext and many more.
Getting Started •
Extensions
Getting started #
Import
import 'package:extension/_ksamaextension_ksama.dart';
copied to clipboard
List of Extensions #
DateTime
String
BuildContext
Currently we have following extensions getters, operators and methods.
Extensions on DateTime:
- Operations
- DateTime superAdd({
int days = 0,
int weeks = 0,
int months = 0,
int years = 0,
})
- DateTime superSubtract({
int days = 0,
int weeks = 0,
int months = 0,
int years = 0,
})
- DateTime get nextDay
- DateTime get prevDay
- DateTime get firstDayOfMonth
- DateTime get lastDayOfMonth
- DateTime get nextMonth
- DateTime get prevMonth
- DateTime get firstDayOfWeek
- DateTime get lastDayOfWeek
- DateTime get nextWeek
- DateTime get prevWeek
- DateTime get firstDayOfYear
- DateTime get lastDayOfYear
- DateTime get nextYear
- DateTime get prevYear
- Checkers
- bool get isToday
- bool get isTomorrow
- bool get isYesterday
- bool get isWeekend
- bool get isWeekday
- Comparators
- bool operator >(DateTime otherDate)
- bool operator >=(DateTime otherDate)
- bool operator <(DateTime otherDate)
- bool operator <=(DateTime otherDate)
- Manipulators
- DateTime get onlyDate
- DateTime get removeMicros
- DateTime get removeMillis
- DateTime get removeSeconds
- DateTime get removeMinutes
copied to clipboard
Extensions on String:
- Cases
- String get capitalisation
- String get titleCase
- String get pascalCase
- String get camelCase
- String get toggleCase
- Manipulators
- String get reverse
- List<String> get tokenise
- String get abbreviate
- Converters
- int? toInt({int? base})
- double? toDouble()
- bool? toBool()
- Validators
- bool get isEmail
- bool get isISBN
- bool get isIPv4
- bool get isIPv6
- Checkers
- bool get isBlanksOnly
- bool get isDecimal
- bool get isBinary
- bool get isOctal
- bool get isHexadecimal
- bool get isDouble
- bool get isBool
copied to clipboard
Extensions on BuildContext:
- ThemeData get theme
- ColorScheme get colorScheme
- TextTheme get textTheme
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.