getBlockInput method

ProgrammingBlockInputModel? getBlockInput({
  1. required String key,
})

Implementation

ProgrammingBlockInputModel? getBlockInput({
  required String key,
}) {
  final auxList = (blockModel?.inputs ?? [])
      .where((element) => element.key == key)
      .toList();

  if (auxList.isEmpty) {
    return null;
  } else {
    return auxList.first;
  }
}