traverseAndConvertDates function
void traverseAndConvertDates(
)
Traverses a nested map and converts date and time fields to the desired format.
params:
obj
: The nested map to traverse and convert.convertFn
: A function that converts a combined date and time string to the desired format.splitFn
: A function that splits a converted date and time string into separate date and time strings.
returns: None
Implementation
void traverseAndConvertDates(
Map<String, dynamic> obj,
String Function(String) convertFn,
Map<String, String> Function(String) splitFn,
)
- talawa
- time_conversion
- traverseAndConvertDates function