ViewData typedef

ViewData = Map<String, dynamic>

Type alias for data passed into rendered views.

View data is a string-keyed map whose values may contain any serializable or template-consumable object.

Example:

final data = <String, dynamic>{
  'title': 'Dashboard',
  'user': currentUser,
};

Implementation

typedef ViewData = Map<String, dynamic>;