putString method

Future<void> putString(
  1. String name, {
  2. String? value,
})

Put a value using key inside a map.

Implementation

Future<void> putString(String name, {String? value}) async {
  await Channels.channel
      .invokeMethodOnMobile<void>('setUserProperty', {"name": name, "value": value});
}