Created
March 22, 2022 18:42
-
-
Save HansMuller/d6388e7747a442b82950653e48d7e851 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class _MaterialStatePropertyAll<T> implements MaterialStateProperty<T> { | |
const _MaterialStatePropertyAll(this.value); | |
final T value; | |
@override | |
T resolve(Set<MaterialState> states) => value; | |
@override | |
String toString() => 'MaterialStateProperty.all($value)'; | |
} | |
void main() { | |
print(const _MaterialStatePropertyAll<String>('foo')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment