String? format([String pattern = 'yyyy-MM-dd HH:mm:ss']) => value == null ? null : _formatDateTime(value!, pattern);