colorOf method
- ProofEntry? newProof
Return color for buttons (active/inactive).
Implementation
Color? colorOf(ProofEntry? newProof) {
if (state == RecorderState.ready) {
return null;
} else if (state == RecorderState.recording) {
return (newProof == _curProof) ? Colors.red : Colors.grey;
} else {
return Colors.grey;
}
}