getMapFromInput<RunInput extends Object> static method

Runnable<RunInput, RunnableOptions, Map<String, dynamic>> getMapFromInput<RunInput extends Object>([
  1. String key = 'input'
])

Convenience method to return a map with the given key and the input as value.

  • key - the key where to place the input in the output map.

Implementation

static Runnable<RunInput, RunnableOptions, Map<String, dynamic>>
    getMapFromInput<RunInput extends Object>([final String key = 'input']) {
  return Runnable.mapInput<RunInput, Map<String, dynamic>>(
    (input) => {key: input},
  );
}