args1<T1> static method

EventCallback<List> args1<T1>(
  1. dynamic callback(
    1. T1 data1
    )
)

Implementation

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