startChat method Null safety

void startChat(
  1. BuildContext context,
  2. String uuid,
  3. String type,
  4. String title,
  5. String commodity,
  6. String postScript,
  7. ValueSetter<String>? customCallback
)

Implementation

static void startChat(
    BuildContext context,
    String uuid,
    String type,
    String title,
    String commodity,
    String postScript,
    ValueSetter<String>? customCallback) {
  Navigator.of(context).push(new MaterialPageRoute(builder: (context) {
    return new ChatKFProvider(
      wid: uuid,
      aid: uuid,
      type: type,
      title: title,
      custom: commodity,
      postscript: postScript,
      customCallback: customCallback,
    );
  }));
}