File tree Expand file tree Collapse file tree 9 files changed +84
-84
lines changed Expand file tree Collapse file tree 9 files changed +84
-84
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ class Butter {
99 /// The API token for Butter user
1010 final String _apiKey;
1111
12- Pages page;
13- Content content;
14- Posts post;
15- Authors author;
16- Categories category;
17- Tags tag;
12+ Pages ? page;
13+ Content ? content;
14+ Posts ? post;
15+ Authors ? author;
16+ Categories ? category;
17+ Tags ? tag;
1818
1919 Butter (this ._apiKey) {
2020 if (_apiKey == "" ) {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class Authors {
1010 /// Retrieves a single author using slug
1111 /// [params] is a Map used to add additional parameters to the query
1212 Future <Response > retrieve ([
13- Map <String , String > params,
13+ Map <String , String >? params,
1414 ]) {
1515 if (params != null )
1616 params["auth_token" ] = _apiKey;
@@ -22,7 +22,7 @@ class Authors {
2222 /// Lists all authors
2323 /// [params] is a Map used to add additional parameters to the query
2424 Future <Response > list ([
25- Map <String , String > params,
25+ Map <String , String >? params,
2626 ]) {
2727 if (params != null )
2828 params["auth_token" ] = _apiKey;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class Categories {
1010 /// Retrieves a single category using slug
1111 /// [params] is a Map used to add additional parameters to the query
1212 Future <Response > retrieve ([
13- Map <String , String > params,
13+ Map <String , String >? params,
1414 ]) {
1515 if (params != null )
1616 params["auth_token" ] = _apiKey;
@@ -22,7 +22,7 @@ class Categories {
2222 /// Lists all categories
2323 /// [params] is a Map used to add additional parameters to the query
2424 Future <Response > list ([
25- Map <String , String > params,
25+ Map <String , String >? params,
2626 ]) {
2727 if (params != null )
2828 params["auth_token" ] = _apiKey;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class Content {
1212 /// [params] is a Map used to add additional parameters to the query
1313 Future <Response > retrieve (
1414 List <String > keys, [
15- Map <String , String > params,
15+ Map <String , String >? params,
1616 ]) {
1717 if (params != null )
1818 params["auth_token" ] = _apiKey;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class Pages {
1414 Future <Response > retrieve (
1515 String pageType,
1616 String pageSlug, [
17- Map <String , String > params,
17+ Map <String , String >? params,
1818 ]) {
1919 if (params != null )
2020 params["auth_token" ] = _apiKey;
@@ -30,7 +30,7 @@ class Pages {
3030 /// [params] is a Map used to add additional parameters to the query
3131 Future <Response > list (
3232 String pageType, [
33- Map <String , String > params,
33+ Map <String , String >? params,
3434 ]) {
3535 if (params != null )
3636 params["auth_token" ] = _apiKey;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class Posts {
1111 /// [params] is a Map used to add additional parameters to the query
1212 Future <Response > retrieve (
1313 String slug, [
14- Map <String , String > params,
14+ Map <String , String >? params,
1515 ]) {
1616 if (params != null ) {
1717 params["auth_token" ] = _apiKey;
@@ -25,7 +25,7 @@ class Posts {
2525 /// Lists multiple posts according to page size
2626 /// [params] is a Map used to add additional parameters to the query
2727 Future <Response > list ([
28- Map <String , String > params,
28+ Map <String , String >? params,
2929 ]) {
3030 if (params != null )
3131 params["auth_token" ] = _apiKey;
@@ -39,7 +39,7 @@ class Posts {
3939 /// [params] is a Map used to add additional parameters to the query
4040 Future <Response > search (
4141 String query, [
42- Map <String , String > params,
42+ Map <String , String >? params,
4343 ]) {
4444 if (params != null ) {
4545 params["auth_token" ] = _apiKey;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class Tags {
1010 /// Retrieves a single page from Pages
1111 /// [params] is a Map used to add additional parameters to the query
1212 Future <Response > retrieve ([
13- Map <String , String > params,
13+ Map <String , String >? params,
1414 ]) {
1515 if (params != null )
1616 params["auth_token" ] = _apiKey;
@@ -22,7 +22,7 @@ class Tags {
2222 /// Retrieves multiple pages from a pageType of Pages
2323 /// [params] is a Map used to add additional parameters to the query
2424 Future <Response > list ([
25- Map <String , String > params,
25+ Map <String , String >? params,
2626 ]) {
2727 if (params != null )
2828 params["auth_token" ] = _apiKey;
You can’t perform that action at this time.
0 commit comments