args2<T1, T2> static method

EventCallback<List> args2<T1, T2>(
  1. dynamic callback(
    1. T1 data1,
    2. T2 data2
    )
)

Implementation

static EventCallback<List<dynamic>> args2<T1, T2>(
  dynamic Function(T1 data1, T2 data2) callback,
) =>
    (data) {
      if (_validate<T1, T2, dynamic, dynamic, dynamic, dynamic, dynamic,
          dynamic, dynamic, dynamic>(data)) {
        return callback(data[0] as T1, data[1] as T2);
      }
      return false;
    };