From 8ac7b01d5356b8d0c8c91d16ef473cecac2c7a62 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 25 Jun 2019 15:39:56 +0200 Subject: [PATCH] [SetPushRequest] make required field required in the class too Took 6 minutes --- lib/src/requests/SetPushersRequest.dart | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/src/requests/SetPushersRequest.dart b/lib/src/requests/SetPushersRequest.dart index 8bc4fc16..6372f2b0 100644 --- a/lib/src/requests/SetPushersRequest.dart +++ b/lib/src/requests/SetPushersRequest.dart @@ -21,6 +21,7 @@ * along with famedly. If not, see . */ import 'package:json_annotation/json_annotation.dart'; +import 'package:meta/meta.dart'; part 'SetPushersRequest.g.dart'; @@ -47,13 +48,13 @@ class SetPushersRequest { bool append; SetPushersRequest({ - this.lang, - this.device_display_name, - this.app_display_name, - this.app_id, - this.kind, - this.pushkey, - this.data, + @required this.lang, + @required this.device_display_name, + @required this.app_display_name, + @required this.app_id, + @required this.kind, + @required this.pushkey, + @required this.data, this.profile_tag, this.append, });