🎯
Focusing
I’m a passionate software architect with deep knowledge
of mobile ecosystem especially on iOS but also Flutter & React Native savvy.
- Ahmedabad
-
08:00
(UTC +05:30) - @DineshKachhot
Highlights
Pinned Loading
-
Flutter Time ago calculator
Flutter Time ago calculator 1static String timeAgoSinceDate(String dateString, {bool numericDates = true}) {
2DateTime date = DateTime.parse(dateString);
3final date2 = DateTime.now();
4final difference = date2.difference(date);
5 -
-
-
Audio/Video Duration formate in Swif...
Audio/Video Duration formate in Swift 4.2 1import Foundation
23extension TimeInterval {
4struct DateComponents {
5static let formatterPositional: DateComponentsFormatter = {
-
Array extension to return the unique...
Array extension to return the unique list of objects based on a given key. 1extension Array {
2func unique<T:Hashable>(by: ((Element) -> (T))) -> [Element] {
3var set = Set<T>() //Keep unique list in a Set for fast retrieval
4var orderedArray = [Element]() //Keeping the unique list of elements but ordered
5for value in self {
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.