input method Null safety

  1. @protected
Logic input(
  1. String name
)

Accesses the Logic associated with this Modules input port named name.

Logic within this Module should consume this signal.

Implementation

@protected
Logic input(String name) => _inputs.containsKey(name)
    ? _inputs[name]!
    : throw Exception(
        'Input name "$name" not found as an input to this Module.');