idxFromString static method

int? idxFromString(
  1. dynamic idx
)

Implementation

static int? idxFromString(dynamic idx) =>
    idx is String ? int.parse(idx) : idx as int?;