- The function with a single input and single output.
- You need to import 'package:polymer_expressions/expression.dart';
The Polymer Expression I implemented formatted a DateTime to be human readable. I imported 'package:intl/intl.dart';
readableDate(DateTime date){
var formatter = new DateFormat('EEEE MMMM d, yyyy');
return formatter.format(date);
}
For Practice: Take the Codelab and replace the filtered list of Codelabs with a function.
No comments:
Post a Comment