args4<T1, T2, T3, T4> static method
EventCallback<List>
args4<T1, T2, T3, T4>(
- dynamic callback(
- T1 data1,
- T2 data2,
- T3 data3,
- T4 data4,
Implementation
static EventCallback<List<dynamic>> args4<T1, T2, T3, T4>(
dynamic Function(T1 data1, T2 data2, T3 data3, T4 data4) callback,
) =>
(data) {
if (_validate<T1, T2, T3, T4, dynamic, dynamic, dynamic, dynamic,
dynamic, dynamic>(data)) {
return callback(
data[0] as T1, data[1] as T2, data[2] as T3, data[3] as T4);
}
return false;
};