getItemFromMap<RunOutput extends Object> static method

Runnable<Map<String, dynamic>, RunnableOptions, RunOutput> getItemFromMap<RunOutput extends Object>(
  1. String key
)

Convenience method to return a value from an input map.

  • key - the key of the item to get from the input map.

Implementation

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