Add missing parameter to TableBorder.symmetric, and improve class constructors (#144279)
Originally, my aim was just to refactor (as per usual), but while messing around with the `TableBorder.symmetric` constructor, I realized that `borderRadius` was missing! This pull request makes a few class constructors more efficient, and it fixes #144277 by adding the missing parameter. <br>
This commit is contained in:
@@ -42,8 +42,7 @@ class FlutterAttachRequestArguments
|
||||
program = obj['program'] as String?,
|
||||
super.fromMap();
|
||||
|
||||
static FlutterAttachRequestArguments fromJson(Map<String, Object?> obj) =>
|
||||
FlutterAttachRequestArguments.fromMap(obj);
|
||||
factory FlutterAttachRequestArguments.fromJson(Map<String, Object?> obj) = FlutterAttachRequestArguments.fromMap;
|
||||
|
||||
/// Arguments to be passed to the tool that will run [program] (for example, the VM or Flutter tool).
|
||||
final List<String>? toolArgs;
|
||||
@@ -128,6 +127,8 @@ class FlutterLaunchRequestArguments
|
||||
customToolReplacesArgs = obj['customToolReplacesArgs'] as int?,
|
||||
super.fromMap();
|
||||
|
||||
factory FlutterLaunchRequestArguments.fromJson(Map<String, Object?> obj) = FlutterLaunchRequestArguments.fromMap;
|
||||
|
||||
/// If noDebug is true the launch request should launch the program without enabling debugging.
|
||||
@override
|
||||
final bool? noDebug;
|
||||
@@ -170,7 +171,4 @@ class FlutterLaunchRequestArguments
|
||||
if (customToolReplacesArgs != null)
|
||||
'customToolReplacesArgs': customToolReplacesArgs,
|
||||
};
|
||||
|
||||
static FlutterLaunchRequestArguments fromJson(Map<String, Object?> obj) =>
|
||||
FlutterLaunchRequestArguments.fromMap(obj);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user