serializeDate method

String? serializeDate(
  1. DateTime date
)

Serializes a DateTime instance to a String.

Uses the provided serializeDate function if available, otherwise uses DateTime.toIso8601String.

Implementation

String? serializeDate(DateTime date) => _serializeDate != null
    ? _serializeDate!.call(date)
    : date.toIso8601String();