@@ -8,9 +8,14 @@ class Avatars extends Service {
88 /// Get Browser Icon
99 ///
1010 /// You can use this endpoint to show different browser icons to your users.
11- /// The code argument receives the browser code as it appears in your user
12- /// /account/sessions endpoint. Use width, height and quality arguments to
13- /// change the output settings.
11+ /// The code argument receives the browser code as it appears in your user [GET
12+ /// /account/sessions](/docs/client/account#accountGetSessions) endpoint. Use
13+ /// width, height and quality arguments to change the output settings.
14+ ///
15+ /// When one dimension is specified and the other is 0, the image is scaled
16+ /// with preserved aspect ratio. If both dimensions are 0, the API provides an
17+ /// image at source quality. If dimensions are not specified, the default size
18+ /// of image returned is 100x100px.
1419 ///
1520 Future <Uint8List > getBrowser ({required String code, int ? width, int ? height, int ? quality}) async {
1621 final String path = '/avatars/browsers/{code}' .replaceAll ('{code}' , code);
@@ -32,6 +37,12 @@ class Avatars extends Service {
3237 /// The credit card endpoint will return you the icon of the credit card
3338 /// provider you need. Use width, height and quality arguments to change the
3439 /// output settings.
40+ ///
41+ /// When one dimension is specified and the other is 0, the image is scaled
42+ /// with preserved aspect ratio. If both dimensions are 0, the API provides an
43+ /// image at source quality. If dimensions are not specified, the default size
44+ /// of image returned is 100x100px.
45+ ///
3546 ///
3647 Future <Uint8List > getCreditCard ({required String code, int ? width, int ? height, int ? quality}) async {
3748 final String path = '/avatars/credit-cards/{code}' .replaceAll ('{code}' , code);
@@ -72,6 +83,12 @@ class Avatars extends Service {
7283 /// You can use this endpoint to show different country flags icons to your
7384 /// users. The code argument receives the 2 letter country code. Use width,
7485 /// height and quality arguments to change the output settings.
86+ ///
87+ /// When one dimension is specified and the other is 0, the image is scaled
88+ /// with preserved aspect ratio. If both dimensions are 0, the API provides an
89+ /// image at source quality. If dimensions are not specified, the default size
90+ /// of image returned is 100x100px.
91+ ///
7592 ///
7693 Future <Uint8List > getFlag ({required String code, int ? width, int ? height, int ? quality}) async {
7794 final String path = '/avatars/flags/{code}' .replaceAll ('{code}' , code);
@@ -94,6 +111,12 @@ class Avatars extends Service {
94111 /// you want. This endpoint is very useful if you need to crop and display
95112 /// remote images in your app or in case you want to make sure a 3rd party
96113 /// image is properly served using a TLS protocol.
114+ ///
115+ /// When one dimension is specified and the other is 0, the image is scaled
116+ /// with preserved aspect ratio. If both dimensions are 0, the API provides an
117+ /// image at source quality. If dimensions are not specified, the default size
118+ /// of image returned is 400x400px.
119+ ///
97120 ///
98121 Future <Uint8List > getImage ({required String url, int ? width, int ? height}) async {
99122 final String path = '/avatars/image' ;
@@ -122,6 +145,12 @@ class Avatars extends Service {
122145 /// default, a random theme will be selected. The random theme will persist for
123146 /// the user's initials when reloading the same theme will always return for
124147 /// the same initials.
148+ ///
149+ /// When one dimension is specified and the other is 0, the image is scaled
150+ /// with preserved aspect ratio. If both dimensions are 0, the API provides an
151+ /// image at source quality. If dimensions are not specified, the default size
152+ /// of image returned is 100x100px.
153+ ///
125154 ///
126155 Future <Uint8List > getInitials ({String ? name, int ? width, int ? height, String ? color, String ? background}) async {
127156 final String path = '/avatars/initials' ;
@@ -144,6 +173,7 @@ class Avatars extends Service {
144173 ///
145174 /// Converts a given plain text to a QR code image. You can use the query
146175 /// parameters to change the size and style of the resulting image.
176+ ///
147177 ///
148178 Future <Uint8List > getQR ({required String text, int ? size, int ? margin, bool ? download}) async {
149179 final String path = '/avatars/qr' ;
0 commit comments