clear method Null safety

void clear()

Implementation

void clear() => key.currentState!.clear();