onReceive method

void onReceive(
  1. String event,
  2. dynamic data
)

Implementation

void onReceive(String event, dynamic data) {}