Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add toString() method for device_info plugin #54430

Open
deadsoul44 opened this issue Apr 10, 2020 · 2 comments · May be fixed by flutter/plugins#2738
Open

Add toString() method for device_info plugin #54430

deadsoul44 opened this issue Apr 10, 2020 · 2 comments · May be fixed by flutter/plugins#2738

Comments

@deadsoul44
Copy link

@deadsoul44 deadsoul44 commented Apr 10, 2020

It can be useful to add a toString() and toStringShort() methods for device_info plugin. Instead of getting the fields one by one, we can use these methods for quick information about the device.

@iapicca
Copy link

@iapicca iapicca commented Apr 13, 2020

Hi @deadsoul44
please remember that from Dart 2.6 you can write your own extensions if you want to

extension Stringify on DeviceInfoPlugin {
  String stringify() {
     /// TODO
  }
}
@Jordanlelay Jordanlelay linked a pull request that will close this issue May 6, 2020
12 of 13 tasks complete
@TimmyGunawan123

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.