outputFor method

  1. @override
void outputFor (
  1. RouterContext context,
  2. dynamic config,
  3. Voyager output
)
override

Implementation

@override
void outputFor(RouterContext context, dynamic config, Voyager output) {
  if (config is String) {
    final builder = builders[config];
    if (builder != null) {
      output[KEY] = builder;
    } else {
      throw FlutterError("No builder for $config defined.");
    }
  }
}