args9<T1, T2, T3, T4, T5, T6, T7, T8, T9> static method

EventCallback<List> args9<T1, T2, T3, T4, T5, T6, T7, T8, T9>(
  1. dynamic callback(
    1. T1 data1,
    2. T2 data2,
    3. T3 data3,
    4. T4 data4,
    5. T5 data5,
    6. T6 data6,
    7. T7 data7,
    8. T8 data8,
    9. T9 data9,
    )
)

Implementation

static EventCallback<List<dynamic>> args9<T1, T2, T3, T4, T5, T6, T7, T8, T9>(
  dynamic Function(T1 data1, T2 data2, T3 data3, T4 data4, T5 data5, T6 data6,
          T7 data7, T8 data8, T9 data9)
      callback,
) =>
    (data) {
      if (_validate<T1, T2, T3, T4, T5, T6, T7, T8, T9, dynamic>(data)) {
        return callback(
            data[0] as T1,
            data[1] as T2,
            data[2] as T3,
            data[3] as T4,
            data[4] as T5,
            data[5] as T6,
            data[6] as T7,
            data[7] as T8,
            data[8] as T9);
      }
      return false;
    };