setUserName function

void setUserName(
  1. String newValue
)

Implementation

void setUserName(String newValue) =>
    prefs.setString("userName", newValue);