✨ Able to edit publication site config
This commit is contained in:
@@ -114,10 +114,7 @@ return $default(_that);case _:
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ProfileDecoration():
|
||||
return $default(_that);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
return $default(_that);}
|
||||
}
|
||||
/// A variant of `map` that fallback to returning `null`.
|
||||
///
|
||||
@@ -176,10 +173,7 @@ return $default(_that.text,_that.color,_that.textColor);case _:
|
||||
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String text, Color color, Color? textColor) $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _ProfileDecoration():
|
||||
return $default(_that.text,_that.color,_that.textColor);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
return $default(_that.text,_that.color,_that.textColor);}
|
||||
}
|
||||
/// A variant of `when` that fallback to returning `null`
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user