view method

Future<void> view(
  1. String viewName, {
  2. Map<String, dynamic> data = const {},
})

Renders a view template (convenience method).

Implementation

Future<void> view(
  String viewName, {
  Map<String, dynamic> data = const {},
}) async {
  await _renderer.renderView(viewName, data: data);
  _sent = true;
}